aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-01 16:03:53 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-01 16:03:53 +0200
commit69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (patch)
tree8659f819818a3da6419959b6b7838a7f0557c948 /server.js
parenta3ee6fa22dee4b68fcde9cd23708b471db446e11 (diff)
downloadPeerTube-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.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')