aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 1286cf521..e83fabb98 100644
--- a/server.ts
+++ b/server.ts
@@ -70,7 +70,9 @@ if (CONFIG.CSP.ENABLED) {
70// ----------- Database ----------- 70// ----------- Database -----------
71 71
72// Initialize database and models 72// Initialize database and models
73import { initDatabaseModels } from './server/initializers/database' 73import { initDatabaseModels, checkDatabaseConnectionOrDie } from './server/initializers/database'
74checkDatabaseConnectionOrDie()
75
74import { migrate } from './server/initializers/migrator' 76import { migrate } from './server/initializers/migrator'
75migrate() 77migrate()
76 .then(() => initDatabaseModels(false)) 78 .then(() => initDatabaseModels(false))