aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/danger/clean/cleaner.js2
1 files changed, 1 insertions, 1 deletions
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
4 4
5const constants = require('../../../server/initializers/constants') 5const constants = require('../../../server/initializers/constants')
6 6
7const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOST + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME 7const mongodbUrl = 'mongodb://' + constants.CONFIG.DATABASE.HOSTNAME + ':' + constants.CONFIG.DATABASE.PORT + '/' + constants.CONFIG.DATABASE.DBNAME
8mongoose.connect(mongodbUrl, function () { 8mongoose.connect(mongodbUrl, function () {
9 console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME) 9 console.info('Deleting MongoDB %s database.', constants.CONFIG.DATABASE.DBNAME)
10 mongoose.connection.dropDatabase(function () { 10 mongoose.connection.dropDatabase(function () {