0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed broken boot sequence

refs 0d0e09f173
refs https://github.com/TryGhost/Team/issues/754

- As per comment on the top of boot.js:

// IMPORTANT: The only global requires here should be overrides + debug so we can monitor timings with DEBUG=ghost:boot* node ghost

- Referenced change broke the rule above and would have caused all sorts of boot problems.
This commit is contained in:
Naz 2021-06-28 10:01:36 +04:00
parent ce3a57a8ac
commit c328ab781b

View file

@ -5,8 +5,6 @@
// - As we manage to break the codebase down into distinct components for e.g. the frontend, their boot logic can be offloaded to them
// - app.js is separate as the first example of each component having it's own app.js file colocated with it, instead of inside of server/web
const updateCheck = require('./server/update-check');
// IMPORTANT: The only global requires here should be overrides + debug so we can monitor timings with DEBUG=ghost:boot* node ghost
require('./server/overrides');
const debug = require('@tryghost/debug')('boot');
@ -209,6 +207,7 @@ async function initBackgroundServices({config}) {
const themeService = require('./server/services/themes');
themeService.loadInactiveThemes();
const updateCheck = require('./server/update-check');
updateCheck.scheduleRecurringJobs();
debug('End: initBackgroundServices');