aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean/cleaner.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-14 22:46:04 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-16 20:29:26 +0100
commitc92372d0aa8bd2bc02152941cfd4546b45949368 (patch)
treea0250d24115b48b69d2ac63a3ceda22631db6463 /scripts/danger/clean/cleaner.js
parent8eb7d0fa0974995d3cfb8a440d72222cc18cd77d (diff)
downloadPeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.tar.gz
PeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.tar.zst
PeerTube-c92372d0aa8bd2bc02152941cfd4546b45949368.zip
Server: fix db clean for clean script
Diffstat (limited to 'scripts/danger/clean/cleaner.js')
-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 () {