diff --git a/server.js b/server.js index ad9c0da..aeab6fe 100644 --- a/server.js +++ b/server.js @@ -108,4 +108,8 @@ app.get('/:owner/:repo/issue/:num', async function (req, res) { 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}`) +})