Skip to content
Snippets Groups Projects
Commit efd47d7a authored by M9713's avatar M9713
Browse files

Update app.js

parent dee553dc
No related branches found
No related tags found
No related merge requests found
Pipeline #557176 skipped
...@@ -31,12 +31,17 @@ if (!isProduction) { ...@@ -31,12 +31,17 @@ if (!isProduction) {
} }
if(isProduction){ if(isProduction){
mongoose.connect(process.env.MONGODB_URI); // mongoose.connect(process.env.MONGODB_URI);
mongoose.connect('mongodb://mongo-service/conduit');
} else { } else {
// IP 10.152.183.50 configured in mongo service config // IP 10.152.183.50 configured in mongo service config
mongoose.connect(process.env.MONGODB_URI);
// mongoose.connect(process.env.MONGODB_URI);
// mongoose.connect('mongodb://10.152.183.50/conduit'); // mongoose.connect('mongodb://10.152.183.50/conduit');
mongoose.connect('mongodb://mongo-service/conduit');
mongoose.set('debug', true); mongoose.set('debug', true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment