microservices: boot
This commit is contained in:
parent
1d109f2371
commit
20a6728ed6
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue