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 be81672 commit a5eccc7Copy full SHA for a5eccc7
srv/suggest-prod.js
@@ -1,18 +1,28 @@
1
/* Copyright (c) 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
7
var Seneca = require('seneca')
8
9
Seneca({tag: 'suggest'})
10
.test('print')
11
12
+ .use('consul-registry', {
13
+ host: CONSUL
14
+ })
15
16
.use('../suggest.js')
17
18
.use('mesh', {
19
pin: 'role:suggest',
- bases: BASES,
20
+ //bases: BASES,
21
host: '@eth0',
- sneeze: {silent:false}
22
+ //sneeze: {silent:false}
23
+ discover: {
24
+ registry: {
25
+ active: true
26
+ }
27
28
})
-
0 commit comments