Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 'use strict'
  2.  
  3. var Seneca = require('seneca')
  4. var Mesh = require('seneca-mesh')
  5.  
  6. var envs = process.env
  7. var opts = {
  8. seneca: {
  9. tag: envs.BASE_TAG || 'base'
  10. },
  11. mesh: {
  12. base: true,
  13. host: process.env.BASE_SERVICE_HOST || '127.0.0.1',
  14. sneeze: {
  15. silent: false
  16. }
  17. }
  18. }
  19.  
  20. Seneca(opts.seneca)
  21. .use(Mesh, opts.mesh)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement