Commit 83cd4908 authored by Thibaut Broggi's avatar Thibaut Broggi

Add a listening address

    Default value is localhost, it can be changed with the configuration file
    or with an environment variable
parent 5d0075da
Pipeline #1923 failed with stages
in 2 minutes and 24 seconds
{ {
"port": "3000", "port": "3000",
"host": "localhost",
"subdir": "generateur-slogans/" "subdir": "generateur-slogans/"
} }
...@@ -213,4 +213,5 @@ app.get('/', function(req, res) { ...@@ -213,4 +213,5 @@ app.get('/', function(req, res) {
_: req.i18n._}); _: req.i18n._});
}) })
app.listen(process.env.PORT || config.port || 80); app.listen(process.env.PORT || config.port || 80,
process.env.HOST || config.host || 'localhost');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment