mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 07:33:10 +00: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 host = process.env.HOST || 'localhost'
|
||||
|
||||
app.server = app.listen(port, () => {
|
||||
console.log(`server running @ http://localhost:${port}`)
|
||||
app.server = app.listen(port, host, () => {
|
||||
console.log(`server running @ http://${host}:${port}`)
|
||||
})
|
||||
|
||||
module.exports = app
|
||||
|
Loading…
x
Reference in New Issue
Block a user