Skip to content

Commit

Permalink
Setup for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadlockDruid committed Sep 24, 2018
1 parent bd1fe5f commit 22387fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/db/mongoose.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const mongoose = require('mongoose');

mongoose.Promise = global.Promise;
mongoose.connect('mongodb://localhost:27017/TodoApp', { useNewUrlParser: true });

mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/TodoApp', { useNewUrlParser: true });

module.exports = { mongoose };

0 comments on commit 22387fe

Please sign in to comment.