changed beheviour of dotenv parsing

This commit is contained in:
Wyatt Johnson
2018-01-04 10:52:15 -07:00
parent ad35a04cdf
commit 843908dab2
+3 -6
View File
@@ -7,12 +7,9 @@
// entrypoint for the entire applications configuration.
require('env-rewrite').rewrite();
if (process.env.NODE_ENV === 'development') {
// Apply all the configuration provided in the .env file if it isn't already
// in the environment.
require('dotenv').config();
}
// Apply all the configuration provided in the .env file if it isn't already
// in the environment.
require('dotenv').config();
const uniq = require('lodash/uniq');
const ms = require('ms');