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