diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -70,7 +70,9 @@ if (CONFIG.CSP.ENABLED) { | |||
70 | // ----------- Database ----------- | 70 | // ----------- Database ----------- |
71 | 71 | ||
72 | // Initialize database and models | 72 | // Initialize database and models |
73 | import { initDatabaseModels } from './server/initializers/database' | 73 | import { initDatabaseModels, checkDatabaseConnectionOrDie } from './server/initializers/database' |
74 | checkDatabaseConnectionOrDie() | ||
75 | |||
74 | import { migrate } from './server/initializers/migrator' | 76 | import { migrate } from './server/initializers/migrator' |
75 | migrate() | 77 | migrate() |
76 | .then(() => initDatabaseModels(false)) | 78 | .then(() => initDatabaseModels(false)) |