We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37f78aa commit 461bd87Copy full SHA for 461bd87
srv/npm-prod.js
@@ -1,12 +1,18 @@
1
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */
2
3
-var BASES = process.env.BASES.split(',')
+//var BASES = process.env.BASES.split(',')
4
+var CONSUL = process.env.CONSUL_SERVICE_HOST || 'localhost'
5
6
var Seneca = require('seneca')
7
8
Seneca({tag: 'npm'})
9
.test('print')
10
11
+ .use('consul-registry', {
12
+ host: CONSUL
13
+ })
14
+
15
16
.use('entity')
17
.use('jsonfile-store', {folder: __dirname+'/../data'})
18
@@ -31,7 +37,12 @@ Seneca({tag: 'npm'})
31
37
{pin: 'role:npm'},
32
38
{pin: 'role:info,need:part', model:'observe'}
33
39
],
34
- bases: BASES,
40
+ //bases: BASES,
35
41
host: '@eth0',
36
- sneeze: {silent:false}
42
+ //sneeze: {silent:false},
43
+ discover: {
44
+ registry: {
45
+ active: true
46
+ }
47
48
})
0 commit comments