Skip to content

Commit c2971d4

Browse files
committed
re-added boot require for models
1 parent 02ccfa2 commit c2971d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ghost/core/core/boot.js

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ async function initCore({ghostServer, config}) {
8787
require('./shared/url-utils');
8888
debug('End: Load urlUtils');
8989

90+
// Models are the heart of Ghost - we want to explicitly load them here so their require time
91+
// isn't hidden in other steps
92+
debug('Begin: models');
93+
require('./server/models');
94+
debug('End: models');
95+
9096
// Settings are a core concept we use settings to store key-value pairs used in critical pathways as well as public data like the site title
9197
debug('Begin: settings');
9298
const settings = require('./server/services/settings/settings-service');

0 commit comments

Comments
 (0)