From 02b59f5cbdfb31c6ac19979408e1ed380f8794fd Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Thu, 30 Nov 2017 22:38:57 -0500 Subject: [PATCH] heroku stuff --- server/db/mongoose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }