From 917641be4f7f7a317d60b3067bc0842525c78b35 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 22 Nov 2021 10:55:01 +0400 Subject: [PATCH] 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 --- core/boot.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/boot.js b/core/boot.js index 3ac48828ae..78183f326e 100644 --- a/core/boot.js +++ b/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');