use PORT and HOST environment variables
This commit is contained in:
parent
2a6b2171f5
commit
ae0e13eb8d
1 changed files with 5 additions and 1 deletions
|
@ -108,4 +108,8 @@ app.get('/:owner/:repo/issue/:num', async function (req, res) {
|
||||||
res.send(await render(html))
|
res.send(await render(html))
|
||||||
})
|
})
|
||||||
|
|
||||||
app.listen(8085)
|
const [port, host] = [process.env.PORT ?? 9054, process.env.HOST ?? '127.0.0.1']
|
||||||
|
|
||||||
|
app.listen(port, host, () => {
|
||||||
|
console.log(`Listening on http://${host}:${port}`)
|
||||||
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue