Services enabled back to normal
This commit is contained in:
parent
6f6258e53b
commit
127900a4d4
1 changed files with 16 additions and 23 deletions
|
@ -84,33 +84,26 @@ dbcheck(err => { // Check if database needs upgrading before starting the server
|
||||||
.then(() => shares.regenerateRoleNamesTable())
|
.then(() => shares.regenerateRoleNamesTable())
|
||||||
.then(() => shares.rebuildPermissions())
|
.then(() => shares.rebuildPermissions())
|
||||||
|
|
||||||
/*
|
/* Simplified startup without services - only for debugging the UI and models
|
||||||
.then(() =>
|
.then(() =>
|
||||||
testServer(() => {
|
startHTTPServer(AppType.TRUSTED, 'trusted', trustedPort, () =>
|
||||||
senders.spawn(() => {
|
startHTTPServer(AppType.SANDBOXED, 'sandbox', sandboxPort, () =>
|
||||||
});
|
startHTTPServer(AppType.PUBLIC, 'public', publicPort, async () => {
|
||||||
})
|
|
||||||
|
await privilegeHelpers.ensureMailtrainDir(uploadedFilesDir);
|
||||||
|
|
||||||
|
privilegeHelpers.dropRootPrivileges();
|
||||||
|
|
||||||
|
tzupdate.start();
|
||||||
|
|
||||||
|
log.info('Service', 'All services started');
|
||||||
|
appBuilder.setReady();
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.then(() =>
|
|
||||||
startHTTPServer(AppType.TRUSTED, 'trusted', trustedPort, () =>
|
|
||||||
startHTTPServer(AppType.SANDBOXED, 'sandbox', sandboxPort, () =>
|
|
||||||
startHTTPServer(AppType.PUBLIC, 'public', publicPort, async () => {
|
|
||||||
|
|
||||||
await privilegeHelpers.ensureMailtrainDir(uploadedFilesDir);
|
|
||||||
|
|
||||||
privilegeHelpers.dropRootPrivileges();
|
|
||||||
|
|
||||||
tzupdate.start();
|
|
||||||
|
|
||||||
log.info('Service', 'All services started');
|
|
||||||
appBuilder.setReady();
|
|
||||||
})
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
/*
|
|
||||||
.then(() =>
|
.then(() =>
|
||||||
executor.spawn(() =>
|
executor.spawn(() =>
|
||||||
testServer(() =>
|
testServer(() =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue