From: Chocobozzz Date: Mon, 14 Nov 2016 21:46:04 +0000 (+0100) Subject: Server: fix db clean for clean script X-Git-Tag: v0.0.1-alpha~618 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c92372d0aa8bd2bc02152941cfd4546b45949368;p=oweals%2Fpeertube.git Server: fix db clean for clean script --- diff --git a/scripts/danger/clean/cleaner.js b/scripts/danger/clean/cleaner.js index 3d364fd23..10e91e700 100644 --- a/scripts/danger/clean/cleaner.js +++ b/scripts/danger/clean/cleaner.js @@ -4,7 +4,7 @@ mongoose.Promise = global.Promise const constants = require('../../../server/initializers/constants') -const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME +const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME mongoose.connect(mongodbUrl, function () { console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME) mongoose.connection.dropDatabase(function () {