Skip to content

Commit 6fbf120

Browse files
committed
consul
1 parent 3455225 commit 6fbf120

33 files changed

+10116
-2
lines changed

srv/web-prod.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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'
5+
46

57
var Seneca = require('seneca')
68

@@ -9,9 +11,18 @@ var app = require('../web.js')
911
Seneca({tag: 'web'})
1012
.test('print')
1113

14+
.use('consul-registry', {
15+
host: CONSUL
16+
})
17+
1218
.use('mesh', {
13-
bases: BASES,
19+
//bases: BASES,
1420
host: '@eth0',
21+
discover: {
22+
registry: {
23+
active: true
24+
}
25+
},
1526
sneeze: {silent:false}
1627
})
1728

www/img/bg.png

14.4 KB
Loading

www/img/github-small.png

1.25 KB
Loading

www/img/grad1.png

192 Bytes
Loading

www/img/hex1.png

1.06 KB
Loading

www/img/hex2.png

1.18 KB
Loading

www/img/hex3.png

1.31 KB
Loading

www/img/hex4.png

1.46 KB
Loading

www/img/hex5.png

1.52 KB
Loading

www/img/hex6-big.png

7.76 KB
Loading

0 commit comments

Comments
 (0)