mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
Merge pull request #613 from 52871299hzy/master
Added customizable host.
This commit is contained in:
commit
8bde78595b
5
app.js
5
app.js
@ -83,9 +83,10 @@ fs.readdirSync(path.join(__dirname, 'module')).reverse().forEach(file => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const port = process.env.PORT || 3000
|
const port = process.env.PORT || 3000
|
||||||
|
const host = process.env.HOST || 'localhost'
|
||||||
|
|
||||||
app.server = app.listen(port, () => {
|
app.server = app.listen(port, host, () => {
|
||||||
console.log(`server running @ http://localhost:${port}`)
|
console.log(`server running @ http://${host}:${port}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = app
|
module.exports = app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user