aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.js b/server.js
index 7503072af..4a0de72bb 100644
--- a/server.js
+++ b/server.js
@@ -37,6 +37,7 @@ if (errorMessage !== null) {
37 37
38// ----------- PeerTube modules ----------- 38// ----------- PeerTube modules -----------
39const customValidators = require('./server/helpers/custom-validators') 39const customValidators = require('./server/helpers/custom-validators')
40const friends = require('./server/lib/friends')
40const installer = require('./server/initializers/installer') 41const installer = require('./server/initializers/installer')
41const migrator = require('./server/initializers/migrator') 42const migrator = require('./server/initializers/migrator')
42const routes = require('./server/controllers') 43const 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)