We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e157766 commit 4d3929eCopy full SHA for 4d3929e
docker/stage/Dockerfile-prod
@@ -0,0 +1,9 @@
1
+
2
+FROM nodezoo-web:1
3
4
+CMD ["node", "/app/srv/web-prod.js"]
5
6
7
8
9
srv/web-prod.js
@@ -0,0 +1,22 @@
+/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */
+var BASES = process.env.BASES.split(',')
+var Seneca = require('seneca')
+var app = require('../web.js')
+Seneca({tag: 'web'})
10
+ .test('print')
11
12
+ .use('mesh', {
13
+ bases: BASES,
14
+ host: '@eth0',
15
+ sneeze: {silent:false}
16
+ })
17
18
+ .ready(function(){
19
+ var server = app({seneca: this})
20
21
+ this.log.info(server.info)
22
0 commit comments