diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-24 17:42:51 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-24 17:42:51 +0200 |
commit | aaf61f3810e6d57c5130af959bd2860df32775e7 (patch) | |
tree | 3871b20359aa56995a4b8974ae5cb6b911dd73f5 /server.js | |
parent | 07d932038745e773359fa87bac6be70523f593ee (diff) | |
download | PeerTube-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.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -31,7 +31,6 @@ const logger = require('./server/helpers/logger') | |||
31 | const poolRequests = require('./server/lib/requestsScheduler') | 31 | const poolRequests = require('./server/lib/requestsScheduler') |
32 | const routes = require('./server/controllers') | 32 | const routes = require('./server/controllers') |
33 | const utils = require('./server/helpers/utils') | 33 | const utils = require('./server/helpers/utils') |
34 | const videos = require('./server/lib/videos') | ||
35 | const webtorrent = require('./server/lib/webtorrent') | 34 | const 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 | }) |