Skip to content

Commit 7d0fe86

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

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
@@ -108,6 +108,12 @@ async function initCore({ghostServer, config}) {
108108
urlService.init();
109109
debug('End: Url Service');
110110

111+
// Models are the heart of Ghost - we want to explicitly load them here so their require time
112+
// isn't hidden in other steps
113+
debug('Begin: models');
114+
require('./server/models');
115+
debug('End: models');
116+
111117
if (ghostServer) {
112118
// Job Service allows parts of Ghost to run in the background
113119
debug('Begin: Job Service');

0 commit comments

Comments
 (0)