From 370a5b1a176cc83039e22db6642973cf409796f2 Mon Sep 17 00:00:00 2001 From: Mark Moffat Date: Mon, 16 Dec 2019 17:46:36 +1030 Subject: [PATCH] Override from env --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index ac3b8ba..eeff044 100644 --- a/app.js +++ b/app.js @@ -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));