Skip to content

Commit

Permalink
Override from env
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Moffat authored and Mark Moffat committed Dec 16, 2019
1 parent 395ce6b commit 370a5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ app.on('uncaughtException', (err) => {
process.exit(2);
});

initDb(config.databaseConnectionString, async (err, db) => {
initDb(process.env.DB_URI || config.databaseConnectionString, async (err, db) => {
// On connection error we display then exit
if(err){
console.log(colors.red('Error connecting to MongoDB: ' + err));
Expand Down

0 comments on commit 370a5b1

Please sign in to comment.