Commits

Alvaro Videla  committed 648c07a

simplifies mongodb connections

  • Participants
  • Parent commits 72925dd

Comments (0)

Files changed (1)

File lib/cloudFoundryUtil.js

     return {
         "hostname": "localhost",
         "port": 27017,
-        "username": "cloudstagram",
-        "password": "cloudstagrampass",
         "name": "",
         "db": "cloudstagram"
     };
 
 function getMongoUrl(dbServiceName) {
     var credentials = getMongoCredentials();
-    var mongoUrl = "mongodb://" + credentials.username + ":" 
-        + credentials.password + "@" + credentials.hostname 
+    var mongoUrl = "mongodb://" + credentials.hostname
         + ":" + credentials.port + "/" + credentials.db;
 
     console.log("MongoUrl: " + mongoUrl);