Skip to content

Commit

Permalink
db fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamqweasd committed Feb 13, 2017
1 parent 37a92d5 commit 551143b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions config/cloudboost.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@

{
"mongo" : [{
"host" : "13.82.98.244",
"port" : "27017",
"username" : "cloudboost-admin",
"password" : "372b60f4-704c-4205-8e5c-45cdbf44b1fc"
}],

"host" : "localhost",
"port" : "27017"
}],

"elasticsearch" : [{
"host" : "localhost",
"port" : "9200"
}],

"redis" : [{
"host" : "127.0.0.1",
"port" : 6379
"port" : 6379
}]
}
}
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,9 @@ function setUpMongoDB() {

console.log("Setting up MongoDB from config.....");

// if (global.config.mongo.length > 1) {
if (global.config.mongo.length > 1) {
isReplicaSet = true;
// }
}

for (var i = 0; i < global.config.mongo.length; i++) {
mongoConnectionString += global.config.mongo[i].host + ":" + global.config.mongo[i].port;
Expand Down

0 comments on commit 551143b

Please sign in to comment.