aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-05-02 22:02:27 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-05-04 21:12:32 +0200
commit227d02feadbc9b1fc916a12528ccc0623fb3069e (patch)
tree0b6bcc8c2c081591588714bc040ac6e810e333de /server.js
parent15d4ee04a94230e1ea83c2959a1981105699ba22 (diff)
downloadPeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.tar.gz
PeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.tar.zst
PeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.zip
Server: add job scheduler to transcode video files
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.js b/server.js
index 33d399786..54fa914bf 100644
--- a/server.js
+++ b/server.js
@@ -40,6 +40,7 @@ const customValidators = require('./server/helpers/custom-validators')
40const friends = require('./server/lib/friends') 40const friends = require('./server/lib/friends')
41const installer = require('./server/initializers/installer') 41const installer = require('./server/initializers/installer')
42const migrator = require('./server/initializers/migrator') 42const migrator = require('./server/initializers/migrator')
43const jobScheduler = require('./server/lib/jobs/job-scheduler')
43const routes = require('./server/controllers') 44const routes = require('./server/controllers')
44 45
45// ----------- Command line ----------- 46// ----------- Command line -----------
@@ -133,6 +134,9 @@ function onDatabaseInitDone () {
133 // Activate the communication with friends 134 // Activate the communication with friends
134 friends.activate() 135 friends.activate()
135 136
137 // Activate job scheduler
138 jobScheduler.activate()
139
136 logger.info('Server listening on port %d', port) 140 logger.info('Server listening on port %d', port)
137 logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) 141 logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL)
138 142