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:
- "80:80"
links:
- "auth:${BRANCH_NAME}-auth"
- "salix:${BRANCH_NAME}-salix"
- "client:${BRANCH_NAME}-client"
- "mailer:${BRANCH_NAME}-mailer"
- "production:${BRANCH_NAME}-production"
- "route:${BRANCH_NAME}-route"
- "${BRANCH_NAME}-auth:auth"
- "${BRANCH_NAME}-salix:salix"
- "${BRANCH_NAME}-client:client"
- "${BRANCH_NAME}-mailer:mailer"
- "${BRANCH_NAME}-production:production"
- "${BRANCH_NAME}-route:route"

View File

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