aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/server.js b/server.js
index 9322bca19..e0284b080 100644
--- a/server.js
+++ b/server.js
@@ -13,14 +13,6 @@ const WebSocketServer = require('ws').Server
13// Create our main app 13// Create our main app
14const app = express() 14const app = express()
15 15
16// ----------- Checker -----------
17const checker = require('./server/initializers/checker')
18
19const miss = checker.checkConfig()
20if (miss.length !== 0) {
21 throw new Error('Miss some configurations keys : ' + miss)
22}
23
24// ----------- Database ----------- 16// ----------- Database -----------
25const config = require('config') 17const config = require('config')
26const constants = require('./server/initializers/constants') 18const constants = require('./server/initializers/constants')
@@ -29,6 +21,14 @@ const logger = require('./server/helpers/logger')
29 21
30database.connect() 22database.connect()
31 23
24// ----------- Checker -----------
25const checker = require('./server/initializers/checker')
26
27const miss = checker.checkConfig()
28if (miss.length !== 0) {
29 throw new Error('Miss some configurations keys : ' + miss)
30}
31
32// ----------- PeerTube modules ----------- 32// ----------- PeerTube modules -----------
33const customValidators = require('./server/helpers/customValidators') 33const customValidators = require('./server/helpers/customValidators')
34const installer = require('./server/initializers/installer') 34const installer = require('./server/initializers/installer')