Skip to content

Commit

Permalink
Added host
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVOiceover committed Jan 23, 2024
1 parent a85f739 commit 8f36c3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const server = require('./server.js')

const PORT = process.env.PORT || 8080
server.listen(PORT, () => console.log(`Listening at http://localhost:${PORT}`))
const HOST = '0.0.0.0' // Listen on all network interfaces

server.listen(PORT, HOST, () => {
console.log(`Listening at http://${HOST}:${PORT}`)
})

0 comments on commit 8f36c3d

Please sign in to comment.