summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorfahimkhan2016-08-17 12:55:05 +0530
committerfahimkhan2016-08-17 12:55:05 +0530
commit396884a528a0c12e4763fe0986f88eba0de47794 (patch)
tree703dd57dac3377f79d932287369633d9c812cdc9 /config
downloadOnline-NgSpice-Simulator-396884a528a0c12e4763fe0986f88eba0de47794.tar.gz
Online-NgSpice-Simulator-396884a528a0c12e4763fe0986f88eba0de47794.tar.bz2
Online-NgSpice-Simulator-396884a528a0c12e4763fe0986f88eba0de47794.zip
Moving Repository from https://github.com/fahimkhan/Online-NgSpice-Simulator to https://github.com/FOSSEE/Online-NgSpice-Simulator
Diffstat (limited to 'config')
-rw-r--r--config/config.js15
-rw-r--r--config/development.json3
-rw-r--r--config/production.json3
-rw-r--r--config/testing.json3
4 files changed, 24 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
diff --git a/config/development.json b/config/development.json
new file mode 100644
index 0000000..059829e
--- /dev/null
+++ b/config/development.json
@@ -0,0 +1,3 @@
+{
+ "host":"http://localhost:3000"
+} \ No newline at end of file
diff --git a/config/production.json b/config/production.json
new file mode 100644
index 0000000..7cd4bf7
--- /dev/null
+++ b/config/production.json
@@ -0,0 +1,3 @@
+{
+ "host":"http://10.101.11.205:3000"
+}
diff --git a/config/testing.json b/config/testing.json
new file mode 100644
index 0000000..7cd4bf7
--- /dev/null
+++ b/config/testing.json
@@ -0,0 +1,3 @@
+{
+ "host":"http://10.101.11.205:3000"
+}