diff options
author | fahim-oscad | 2016-08-04 13:39:45 +0530 |
---|---|---|
committer | fahim-oscad | 2016-08-04 13:39:45 +0530 |
commit | 708f143d6bbd52a74367c8047810ad70e02de022 (patch) | |
tree | 5878822b2d2f1ef3c8283fee45d3001dcf8a91f7 | |
parent | 04d16332ffa76380245dae743fc8dd59817253a4 (diff) | |
download | eSimWebApp-708f143d6bbd52a74367c8047810ad70e02de022.tar.gz eSimWebApp-708f143d6bbd52a74367c8047810ad70e02de022.tar.bz2 eSimWebApp-708f143d6bbd52a74367c8047810ad70e02de022.zip |
Added configuration file for testing server
-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" +} |