Override from env

master
Mark Moffat 2019-12-16 17:46:36 +10:30
parent 395ce6bce6
commit 370a5b1a17
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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));