diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -40,6 +40,7 @@ const customValidators = require('./server/helpers/custom-validators') | |||
40 | const friends = require('./server/lib/friends') | 40 | const friends = require('./server/lib/friends') |
41 | const installer = require('./server/initializers/installer') | 41 | const installer = require('./server/initializers/installer') |
42 | const migrator = require('./server/initializers/migrator') | 42 | const migrator = require('./server/initializers/migrator') |
43 | const jobScheduler = require('./server/lib/jobs/job-scheduler') | ||
43 | const routes = require('./server/controllers') | 44 | const 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 | ||