microservices: boot

This commit is contained in:
Vicente Falco 2017-11-09 07:34:02 +01:00
parent 1d109f2371
commit 20a6728ed6
2 changed files with 10 additions and 9 deletions

View File

@ -88,9 +88,9 @@ services:
ports: ports:
- "80:80" - "80:80"
links: links:
- "auth:${BRANCH_NAME}-auth" - "${BRANCH_NAME}-auth:auth"
- "salix:${BRANCH_NAME}-salix" - "${BRANCH_NAME}-salix:salix"
- "client:${BRANCH_NAME}-client" - "${BRANCH_NAME}-client:client"
- "mailer:${BRANCH_NAME}-mailer" - "${BRANCH_NAME}-mailer:mailer"
- "production:${BRANCH_NAME}-production" - "${BRANCH_NAME}-production:production"
- "route:${BRANCH_NAME}-route" - "${BRANCH_NAME}-route:route"

View File

@ -84,10 +84,11 @@ function vnBoot(app, rootDir, cb) {
boot(app, bootOptions, function(err) { boot(app, bootOptions, function(err) {
if (err) throw err; if (err) throw err;
if (require.main === module)
app.start();
if (cb) if (cb)
cb(app); cb(app);
}); });
if (require.main === module) {
app.start();
}
} }