diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/DillerConfig.js | 3 | ||||
-rw-r--r-- | src/web/DillerWeb.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/DillerConfig.js b/src/DillerConfig.js index 652561a..81ff046 100644 --- a/src/DillerConfig.js +++ b/src/DillerConfig.js @@ -53,11 +53,14 @@ function configureLogging(app) { } function DillerConfig() { + var httpPort = process.env.HTTP_PORT || 8080; + return { isProd: isProd, updateDillerRpc: !isProd(), mqttUrl: mqttUrl, postgresqlConfig: postgresqlConfig, + httpPort: httpPort, configureLogging: configureLogging, log: function () { return log; diff --git a/src/web/DillerWeb.js b/src/web/DillerWeb.js index a5bdf6b..c261af7 100644 --- a/src/web/DillerWeb.js +++ b/src/web/DillerWeb.js @@ -105,8 +105,7 @@ function DillerWeb(diller, db, config) { } function listen() { - var port = process.env.HTTP_PORT || 8080; - app.listen(port); + app.listen(config.httpPort); } function generateRpc() { |