diff --git a/index.js b/index.js index 3dda0cc..8283b6d 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,7 @@ app.get('/', (req, res) => { res.setHeader('Content-Type', 'text/html; charset=utf-8'); res.send(`${siteConfig.name}

${siteConfig.name}

${siteConfig.description}

`); }); -app.listen(PORT, () => console.log(`🐝 HeadyAPI running at http://localhost:${PORT}`)); +app.listen(PORT, () => { + const host = process.env.HOST || '0.0.0.0'; + process.stdout.write(`HeadyAPI running at http://${host}:${PORT}\n`); +});