This commit is contained in:
binaryify
2019-10-25 14:58:34 +08:00
parent 8bde78595b
commit 641a72b06c
4 changed files with 14 additions and 2 deletions

2
app.js
View File

@ -83,7 +83,7 @@ fs.readdirSync(path.join(__dirname, 'module')).reverse().forEach(file => {
})
const port = process.env.PORT || 3000
const host = process.env.HOST || 'localhost'
const host = process.env.HOST || '127.0.0.1'
app.server = app.listen(port, host, () => {
console.log(`server running @ http://${host}:${port}`)