summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/tools/getDevConfig.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/tools/getDevConfig.js')
-rw-r--r--openecomp-ui/tools/getDevConfig.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/openecomp-ui/tools/getDevConfig.js b/openecomp-ui/tools/getDevConfig.js
new file mode 100644
index 0000000000..6563311ed2
--- /dev/null
+++ b/openecomp-ui/tools/getDevConfig.js
@@ -0,0 +1,10 @@
+module.exports = function () {
+ let localDevConfig = {};
+ try {
+ localDevConfig = require('../devConfig');
+ } catch (e) {}
+ const devConfig = Object.assign({}, require('../devConfig.defaults'), localDevConfig);
+ let devPort = process.env.PORT || devConfig.port;
+ devConfig.port = devPort;
+ return devConfig;
+}();