heroku stuff
This commit is contained in:
parent
4e33fe7343
commit
02b59f5cbd
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user