File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */
2
2
3
- var BASES = process . env . BASES . split ( ',' )
3
+ //var BASES = process.env.BASES.split(',')
4
+ var CONSUL = process . env . CONSUL_SERVICE_HOST || 'localhost'
4
5
5
6
var Seneca = require ( 'seneca' )
6
7
7
8
Seneca ( { tag : 'npm' } )
8
9
. test ( 'print' )
9
10
11
+ . use ( 'consul-registry' , {
12
+ host : CONSUL
13
+ } )
14
+
15
+
10
16
. use ( 'entity' )
11
17
. use ( 'jsonfile-store' , { folder : __dirname + '/../data' } )
12
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
+ }
37
48
} )
You can’t perform that action at this time.
0 commit comments