Skip to content

Commit

Permalink
Review suggestion/atlas or localdb only
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Morgan committed Jan 14, 2021
1 parent 1957f9a commit 96f1fac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/env/all.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// default app configuration
const port = process.env.PORT || 4000;
let db = process.env.MONGOLAB_URI || process.env.MONGODB_URI;

if (!db) {
db = 'mongodb://localhost:27017/nodegoat';
}
let db = process.env.MONGODB_URI || "mongodb://localhost:27017/nodegoat";

module.exports = {
port,
Expand Down

0 comments on commit 96f1fac

Please sign in to comment.