Skip to content

Commit

Permalink
Merge pull request #5 from flootr/patch-1
Browse files Browse the repository at this point in the history
Closes #4
  • Loading branch information
meaku committed Aug 26, 2015
2 parents b2c2544 + 6237aac commit a291db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function dynamicConfig(basePath, fileName) {
}

dynamicConfig.getEnv = function() {
return argv.env || argv.ENV || process.env.env || process.env.ENV || dynamicConfig.options.defaultEnv;
return argv.env || argv.ENV || process.env.env || process.env.ENV || process.env.NODE_ENV || dynamicConfig.options.defaultEnv;
};

dynamicConfig.getFilePath = function(basePath, env, fileName) {
Expand Down

0 comments on commit a291db4

Please sign in to comment.