diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-23 19:41:17 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-26 20:28:34 +0200 |
commit | 3737bbafb109a79f77c3047eb9b2791e6b57344e (patch) | |
tree | 60a12fceac8345fc124b3d9c045732d72395bfc3 /server/initializers/database.js | |
parent | 2c49ca42d14087ce8e1695759435f796a290470b (diff) | |
download | PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.gz PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.tar.zst PeerTube-3737bbafb109a79f77c3047eb9b2791e6b57344e.zip |
Server: host -> hostname (host = hostname + port)
Diffstat (limited to 'server/initializers/database.js')
-rw-r--r-- | server/initializers/database.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/database.js b/server/initializers/database.js index 632040b81..0564e4e77 100644 --- a/server/initializers/database.js +++ b/server/initializers/database.js | |||
@@ -22,7 +22,7 @@ const database = { | |||
22 | 22 | ||
23 | function connect () { | 23 | function connect () { |
24 | mongoose.Promise = global.Promise | 24 | mongoose.Promise = global.Promise |
25 | mongoose.connect('mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME) | 25 | mongoose.connect('mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME) |
26 | mongoose.connection.on('error', function () { | 26 | mongoose.connection.on('error', function () { |
27 | throw new Error('Mongodb connection error.') | 27 | throw new Error('Mongodb connection error.') |
28 | }) | 28 | }) |