Removed no backend optimization in boot

refs https://github.com/TryGhost/Toolbox/issues/135

- The expectation is to only skip monting the backend API routes instead of skipping creation of whole GhostServer
This commit is contained in:
Naz 2021-11-22 10:55:01 +04:00 committed by naz
parent bbc93ff996
commit 917641be4f

View File

@ -352,13 +352,11 @@ async function bootGhost({backend = true, frontend = true} = {}) {
debug('Begin: load server + minimal app');
const rootApp = require('./app');
if (backend) {
const GhostServer = require('./server/ghost-server');
ghostServer = new GhostServer({url: config.getSiteUrl()});
await ghostServer.start(rootApp);
bootLogger.log('server started');
debug('End: load server + minimal app');
}
const GhostServer = require('./server/ghost-server');
ghostServer = new GhostServer({url: config.getSiteUrl()});
await ghostServer.start(rootApp);
bootLogger.log('server started');
debug('End: load server + minimal app');
// Step 3 - Get the DB ready
debug('Begin: Get DB ready');