summaryrefslogtreecommitdiff
path: root/config/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.js')
-rw-r--r--config/config.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/config.js b/config/config.js
new file mode 100644
index 0000000..ca12348
--- /dev/null
+++ b/config/config.js
@@ -0,0 +1,15 @@
+
+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'); \ No newline at end of file