diff options
-rw-r--r-- | config/config.js | 15 | ||||
-rw-r--r-- | config/development.json | 2 | ||||
-rw-r--r-- | config/production.json | 2 | ||||
-rw-r--r-- | config/testing.json | 3 |
4 files changed, 19 insertions, 3 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'); diff --git a/config/development.json b/config/development.json index 81b3d4d..f407702 100644 --- a/config/development.json +++ b/config/development.json @@ -1,4 +1,4 @@ { - "host":"http://localhost:3000" + "host":"http://localhost:4000" } diff --git a/config/production.json b/config/production.json index 81b3d4d..60f04de 100644 --- a/config/production.json +++ b/config/production.json @@ -1,4 +1,4 @@ { - "host":"http://localhost:3000" + "host":"http://10.101.11.205:4000" } diff --git a/config/testing.json b/config/testing.json new file mode 100644 index 0000000..b067e1a --- /dev/null +++ b/config/testing.json @@ -0,0 +1,3 @@ +{ + "host":"http://10.101.11.205:4000" +} |