mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
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
1 changed files with 5 additions and 7 deletions
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');
|
debug('Begin: load server + minimal app');
|
||||||
const rootApp = require('./app');
|
const rootApp = require('./app');
|
||||||
|
|
||||||
if (backend) {
|
const GhostServer = require('./server/ghost-server');
|
||||||
const GhostServer = require('./server/ghost-server');
|
ghostServer = new GhostServer({url: config.getSiteUrl()});
|
||||||
ghostServer = new GhostServer({url: config.getSiteUrl()});
|
await ghostServer.start(rootApp);
|
||||||
await ghostServer.start(rootApp);
|
bootLogger.log('server started');
|
||||||
bootLogger.log('server started');
|
debug('End: load server + minimal app');
|
||||||
debug('End: load server + minimal app');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Step 3 - Get the DB ready
|
// Step 3 - Get the DB ready
|
||||||
debug('Begin: Get DB ready');
|
debug('Begin: Get DB ready');
|
||||||
|
|
Loading…
Add table
Reference in a new issue