Skip to content

Commit

Permalink
consul
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamefml committed Nov 6, 2017
1 parent be81672 commit a5eccc7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions srv/suggest-prod.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
/* Copyright (c) 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: 'suggest'})
.test('print')

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

.use('../suggest.js')

.use('mesh', {
pin: 'role:suggest',
bases: BASES,
//bases: BASES,
host: '@eth0',
sneeze: {silent:false}
//sneeze: {silent:false}
discover: {
registry: {
active: true
}
}
})

0 comments on commit a5eccc7

Please sign in to comment.