Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaud authored Feb 15, 2018
1 parent efeecec commit 60b4bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.use(cors())
// DB Setup
var mongoose = require('mongoose');

var DATABASE_URL = process.env.DATABASE_URL || 'http://localhost:27017'
var DATABASE_URL = process.env.DATABASE_URL || 'http://localhost'
mongoose.connect(`mongodb://${DATABASE_URL}:27017/posts`);

var db = mongoose.connection;
Expand Down

0 comments on commit 60b4bc5

Please sign in to comment.