repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply dependencies update
[e-mobility-charging-stations-simulator.git]
/
src
/
ui
/
web
/
start.js
diff --git
a/src/ui/web/start.js
b/src/ui/web/start.js
index 0078cb5e6d0cb2a1364ec8a145f21f6a486bf241..ed6e3e01ff65c0f81696ba9805a5b622f8c5169c 100644
(file)
--- a/
src/ui/web/start.js
+++ b/
src/ui/web/start.js
@@
-3,7
+3,8
@@
const path = require('path'),
http = require('http'),
serveStatic = require('serve-static');
http = require('http'),
serveStatic = require('serve-static');
-const PORT = process.env.PORT || 3030,
+const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined,
+ PORT = isCFEnvironment ? parseInt(process.env.PORT) : 3030,
uiPath = path.join(__dirname, './dist');
const serve = serveStatic(uiPath);
uiPath = path.join(__dirname, './dist');
const serve = serveStatic(uiPath);