diff --git a/server/db/mongoose.js b/server/db/mongoose.js index db2ab8b..eb7060a 100644 --- a/server/db/mongoose.js +++ b/server/db/mongoose.js @@ -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 }