heroku stuff

This commit is contained in:
Tyrel Souza 2017-11-30 22:38:57 -05:00
parent 4e33fe7343
commit 02b59f5cbd

View File

@ -1,5 +1,5 @@
var mongoose = require('mongoose'); var mongoose = require('mongoose');
mongoose.Promise = global.Promise; 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 } module.exports = { mongoose }