Skip to content

Commit

Permalink
update connection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tlandegger authored Jul 13, 2017
1 parent 5838fad commit a6a4906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ app.delete("/api/test/:id", deleteMessage);

var connectionString = 'mongodb://127.0.0.1:27017/test'; // for local

if(process.env.MLAB_USERNAME_WEBDEV) { // check if running remotely
if(process.env.MLAB_USER) { // check if running remotely
var username = process.env.MLAB_USER; // get from environment
var password = process.env.MLAB_PASS;
connectionString = 'mongodb://' + username + ':' + password;
Expand Down

0 comments on commit a6a4906

Please sign in to comment.