aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-28 20:17:05 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-28 20:17:05 +0200
commit907e9510c28b4b2816cba0c070e3feaa16b10ac3 (patch)
tree88d1a1651d83548a1e10d43b3db86a6f03f884e2 /server.js
parent00057e85a703713a8f0d96e01c49978be0987eb2 (diff)
downloadPeerTube-907e9510c28b4b2816cba0c070e3feaa16b10ac3.tar.gz
PeerTube-907e9510c28b4b2816cba0c070e3feaa16b10ac3.tar.zst
PeerTube-907e9510c28b4b2816cba0c070e3feaa16b10ac3.zip
Re enable the "seed all videos" function
Diffstat (limited to 'server.js')
-rw-r--r--server.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/server.js b/server.js
index 33e34019d..9322bca19 100644
--- a/server.js
+++ b/server.js
@@ -37,6 +37,7 @@ const routes = require('./server/controllers')
37const utils = require('./server/helpers/utils') 37const utils = require('./server/helpers/utils')
38const webtorrent = require('./server/lib/webtorrent') 38const webtorrent = require('./server/lib/webtorrent')
39const Request = mongoose.model('Request') 39const Request = mongoose.model('Request')
40const Video = mongoose.model('Video')
40 41
41// Get configurations 42// Get configurations
42const port = config.get('listen.port') 43const port = config.get('listen.port')
@@ -139,11 +140,13 @@ installer.installApplication(function (err) {
139 // Activate the pool requests 140 // Activate the pool requests
140 Request.activate() 141 Request.activate()
141 142
142 // videos.seedAllExisting(function () { 143 Video.seedAllExisting(function (err) {
144 if (err) throw err
145
143 logger.info('Seeded all the videos') 146 logger.info('Seeded all the videos')
144 logger.info('Server listening on port %d', port) 147 logger.info('Server listening on port %d', port)
145 app.emit('ready') 148 app.emit('ready')
146 // }) 149 })
147 }) 150 })
148 }) 151 })
149}) 152})