]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/database.js
Server: use preview image for opengraph
[github/Chocobozzz/PeerTube.git] / server / initializers / database.js
index 632040b81f96b083b4b32b077db2b5c89631f00a..0564e4e77fdd824c73ff21c3f0ffc504eec0f5a9 100644 (file)
@@ -22,7 +22,7 @@ const database = {
 
 function connect () {
   mongoose.Promise = global.Promise
-  mongoose.connect('mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME)
+  mongoose.connect('mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME)
   mongoose.connection.on('error', function () {
     throw new Error('Mongodb connection error.')
   })