diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:03:53 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:03:53 +0200 |
commit | 69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (patch) | |
tree | 8659f819818a3da6419959b6b7838a7f0557c948 /server.js | |
parent | a3ee6fa22dee4b68fcde9cd23708b471db446e11 (diff) | |
download | PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.tar.gz PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.tar.zst PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.zip |
OAuth/User models refractoring -> use mongoose api
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') |