From 9cb9192fc99c9e9460b9afcaa3349aa049464b62 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Tue, 15 Jan 2019 09:00:14 +0100 Subject: [PATCH] mailer env config --- services/mailer/application/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/mailer/application/config.js b/services/mailer/application/config.js index 4c54025fb..6b3311861 100644 --- a/services/mailer/application/config.js +++ b/services/mailer/application/config.js @@ -2,6 +2,7 @@ require('require-yaml'); const fs = require('fs-extra'); const packageJson = require('../package.json'); let configPath = `/etc/${packageJson.name}`; +let env = process.env.NODE_ENV ? process.env.NODE_ENV : 'development'; let config = require('./config/datasources.json'); let configFiles = [