We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b380f28 commit d547eecCopy full SHA for d547eec
srv/info-prod.js
@@ -1,20 +1,30 @@
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: 'info'})
9
.test('print')
10
11
+ .use('consul-registry', {
12
+ host: CONSUL
13
+ })
14
+
15
.use('../info.js')
16
17
.use('mesh', {
18
listen: [
19
{pin: 'role:info,cmd:get'},
20
{pin: 'role:info,collect:part', model:'observe'}
21
],
- bases: BASES,
22
+ //bases: BASES,
23
host: '@eth0',
- sneeze: {silent:false}
24
+ //sneeze: {silent:false}
25
+ discover: {
26
+ registry: {
27
+ active: true
28
+ }
29
30
})
0 commit comments