Skip to content

Commit

Permalink
consul
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Nov 7, 2017
1 parent 6794383 commit d176c30
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"dependencies": {
"seneca": "3.4.2",
"seneca-balance-client": "0.6.1",
"seneca-monitor": "0.1.0",
"seneca-consul-registry": "^0.1.0",
"seneca-entity": "2.0.2",
"seneca-mesh": "0.11.0",
"seneca-monitor": "0.1.0",
"seneca-repl": "1.1.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion srv/repl-dev-mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var Seneca = require('seneca')

Seneca({tag: 'repl'})
.test('print')
//.test('print')
.use('monitor', {collect: true})

.use('mesh', {
Expand Down
15 changes: 14 additions & 1 deletion srv/repl-prod.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */

var HOST = process.env.HOST
var CONSUL = process.env.CONSUL_SERVICE_HOST || 'localhost'

var Seneca = require('seneca')

Seneca({tag: 'repl'})
.test('print')

.use('consul-registry', {
host: CONSUL
})

.use('mesh', {
base: true,
//host: HOST,
host: '@eth0',
port: 39000,
sneeze: {silent:false}
sneeze: {silent:false},
discover: {
registry: {
active: true
}
}
})

.use('entity')
Expand Down

0 comments on commit d176c30

Please sign in to comment.