Skip to content

Commit

Permalink
consul
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Nov 2, 2017
1 parent b380f28 commit d547eec
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions srv/info-prod.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */

var BASES = process.env.BASES.split(',')
//var BASES = process.env.BASES.split(',')
var CONSUL = process.env.CONSUL_SERVICE_HOST || 'localhost'

var Seneca = require('seneca')

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

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

.use('../info.js')

.use('mesh', {
listen: [
{pin: 'role:info,cmd:get'},
{pin: 'role:info,collect:part', model:'observe'}
],
bases: BASES,
//bases: BASES,
host: '@eth0',
sneeze: {silent:false}
//sneeze: {silent:false}
discover: {
registry: {
active: true
}
}
})

0 comments on commit d547eec

Please sign in to comment.