api: listen on 0.0.0.0
This commit is contained in:
parent
6338ee9e8a
commit
e78e425ca3
1 changed files with 2 additions and 2 deletions
|
@ -41,5 +41,5 @@ app.use((req, res, next) => {
|
||||||
return notFound(res);
|
return notFound(res);
|
||||||
});
|
});
|
||||||
|
|
||||||
const port = process.env.PORT || 3000;
|
const port = (process.env.PORT && parseInt(process.env.PORT, 10)) || 3000;
|
||||||
app.listen(port, () => console.log(`API server listening on port ${port}`)); // tslint:disable-line
|
app.listen(port, "0.0.0.0", () => console.log(`API server listening on port ${port}`)); // tslint:disable-line
|
||||||
|
|
Loading…
Add table
Reference in a new issue