diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -37,6 +37,7 @@ if (errorMessage !== null) { | |||
37 | 37 | ||
38 | // ----------- PeerTube modules ----------- | 38 | // ----------- PeerTube modules ----------- |
39 | const customValidators = require('./server/helpers/custom-validators') | 39 | const customValidators = require('./server/helpers/custom-validators') |
40 | const friends = require('./server/lib/friends') | ||
40 | const installer = require('./server/initializers/installer') | 41 | const installer = require('./server/initializers/installer') |
41 | const migrator = require('./server/initializers/migrator') | 42 | const migrator = require('./server/initializers/migrator') |
42 | const routes = require('./server/controllers') | 43 | const routes = require('./server/controllers') |
@@ -128,8 +129,8 @@ installer.installApplication(function (err) { | |||
128 | 129 | ||
129 | // ----------- Make the server listening ----------- | 130 | // ----------- Make the server listening ----------- |
130 | server.listen(port, function () { | 131 | server.listen(port, function () { |
131 | // Activate the pool requests | 132 | // Activate the communication with friends |
132 | db.Request.activate() | 133 | friends.activate() |
133 | 134 | ||
134 | logger.info('Server listening on port %d', port) | 135 | logger.info('Server listening on port %d', port) |
135 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) | 136 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) |