From 708f143d6bbd52a74367c8047810ad70e02de022 Mon Sep 17 00:00:00 2001 From: fahim-oscad Date: Thu, 4 Aug 2016 13:39:45 +0530 Subject: Added configuration file for testing server --- config/config.js | 15 ++++++++++++++- config/development.json | 2 +- config/production.json | 2 +- config/testing.json | 3 +++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 config/testing.json 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" +} -- cgit