aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-24 14:11:15 +0200
committerChocobozzz <me@florianbigard.com>2020-08-24 14:11:15 +0200
commit74055dc882e484b217f398917a3cc24bf2ea8cbe (patch)
tree905fa5d78258d699c3dac4b22769fd209bafd8bc /server.ts
parent8b6f0fd53d12faf54a58602a8bcfab05e8b5947b (diff)
downloadPeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.tar.gz
PeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.tar.zst
PeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.zip
Fix tests
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))