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:
parent
bbc93ff996
commit
917641be4f
12
core/boot.js
12
core/boot.js
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user