From 7036f4e6702135627580b4f77b19dc065e8889bf Mon Sep 17 00:00:00 2001
From: M9713 <m9713@student.jamk.fi>
Date: Thu, 24 Mar 2022 18:46:28 +0200
Subject: [PATCH] Update app.js

---
 conduit-backend/app.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/conduit-backend/app.js b/conduit-backend/app.js
index 1859a96..a7301b0 100644
--- a/conduit-backend/app.js
+++ b/conduit-backend/app.js
@@ -35,7 +35,8 @@ if(isProduction){
 } else {
 
 // IP 10.152.183.50 configured in mongo service config
-  mongoose.connect('mongodb://10.152.183.50/conduit');
+  mongoose.connect(process.env.MONGODB_URI);
+//  mongoose.connect('mongodb://10.152.183.50/conduit');
   mongoose.set('debug', true);
 }
 
-- 
GitLab