diff options
Diffstat (limited to 'config/config.js')
-rw-r--r-- | config/config.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/config/config.js b/config/config.js index c25d1a6..edc44b0 100644 --- a/config/config.js +++ b/config/config.js @@ -1 +1,14 @@ -module.exports = require('./'+(process.env.NODE_ENV || 'development')+'.json'); + +if (process.env.NODE_ENV=='production'){ + module.exports = require('./production.json'); +} +else if (process.env.NODE_ENV=='testing'){ + module.exports = require('./testing.json'); +} +else if (process.env.NODE_ENV=='development'){ + module.exports = require('./development.json'); +} +else{ + console.log("Please select the proper Node environment"); +} +//module.exports = require('./'+(process.env.NODE_ENV || 'development')+'.json'); |