aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-24 17:42:51 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-24 17:42:51 +0200
commitaaf61f3810e6d57c5130af959bd2860df32775e7 (patch)
tree3871b20359aa56995a4b8974ae5cb6b911dd73f5 /server.js
parent07d932038745e773359fa87bac6be70523f593ee (diff)
downloadPeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.tar.gz
PeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.tar.zst
PeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.zip
Video model refractoring -> use mongoose api
Diffstat (limited to 'server.js')
-rw-r--r--server.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/server.js b/server.js
index 4c8e8cfd3..63aeb7145 100644
--- a/server.js
+++ b/server.js
@@ -31,7 +31,6 @@ const logger = require('./server/helpers/logger')
31const poolRequests = require('./server/lib/requestsScheduler') 31const poolRequests = require('./server/lib/requestsScheduler')
32const routes = require('./server/controllers') 32const routes = require('./server/controllers')
33const utils = require('./server/helpers/utils') 33const utils = require('./server/helpers/utils')
34const videos = require('./server/lib/videos')
35const webtorrent = require('./server/lib/webtorrent') 34const webtorrent = require('./server/lib/webtorrent')
36 35
37// Get configurations 36// Get configurations
@@ -138,11 +137,11 @@ installer.installApplication(function (err) {
138 // Activate the pool requests 137 // Activate the pool requests
139 poolRequests.activate() 138 poolRequests.activate()
140 139
141 videos.seedAllExisting(function () { 140 // videos.seedAllExisting(function () {
142 logger.info('Seeded all the videos') 141 logger.info('Seeded all the videos')
143 logger.info('Server listening on port %d', port) 142 logger.info('Server listening on port %d', port)
144 app.emit('ready') 143 app.emit('ready')
145 }) 144 // })
146 }) 145 })
147 }) 146 })
148}) 147})