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 37f78aa commit 461bd87
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions srv/npm-prod.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
/* 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: 'npm'})
.test('print')

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


.use('entity')
.use('jsonfile-store', {folder: __dirname+'/../data'})

Expand All @@ -31,7 +37,12 @@ Seneca({tag: 'npm'})
{pin: 'role:npm'},
{pin: 'role:info,need:part', model:'observe'}
],
bases: BASES,
//bases: BASES,
host: '@eth0',
sneeze: {silent:false}
//sneeze: {silent:false},
discover: {
registry: {
active: true
}
}
})

0 comments on commit 461bd87

Please sign in to comment.