heroku stuff

This commit is contained in:
Tyrel Souza 2017-11-30 22:38:57 -05:00
parent 4e33fe7343
commit 02b59f5cbd
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.connect('mongodb://127.0.0.1:27017/TodoApp');
mongoose.connect(process.env.MONGODB_URI || 'mongodb://127.0.0.1:27017/TodoApp');
module.exports = { mongoose }