Skip to content

Commit

Permalink
fix db 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tlandegger authored Aug 16, 2017
1 parent 49133a9 commit 9f95895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assignment/model/models.server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var q = require('q');

var connectionString = 'mongodb://127.0.0.1:27017/webdev_summer2_2017'; // 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 9f95895

Please sign in to comment.