Skip to content

Commit d547eec

Browse files
committed
consul
1 parent b380f28 commit d547eec

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

srv/info-prod.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */
22

3-
var BASES = process.env.BASES.split(',')
3+
//var BASES = process.env.BASES.split(',')
4+
var CONSUL = process.env.CONSUL_SERVICE_HOST || 'localhost'
45

56
var Seneca = require('seneca')
67

78
Seneca({tag: 'info'})
89
.test('print')
910

11+
.use('consul-registry', {
12+
host: CONSUL
13+
})
14+
1015
.use('../info.js')
1116

1217
.use('mesh', {
1318
listen: [
1419
{pin: 'role:info,cmd:get'},
1520
{pin: 'role:info,collect:part', model:'observe'}
1621
],
17-
bases: BASES,
22+
//bases: BASES,
1823
host: '@eth0',
19-
sneeze: {silent:false}
24+
//sneeze: {silent:false}
25+
discover: {
26+
registry: {
27+
active: true
28+
}
29+
}
2030
})

0 commit comments

Comments
 (0)