Skip to content

Commit 4d3929e

Browse files
committed
prod
1 parent e157766 commit 4d3929e

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

docker/stage/Dockerfile-prod

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */
2+
3+
var BASES = process.env.BASES.split(',')
4+
5+
var Seneca = require('seneca')
6+
7+
var app = require('../web.js')
8+
9+
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

Comments
 (0)