Allow all IPv4 interfaces (for docker)
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ const port = process.env.PORT || 5000
|
|||||||
|
|
||||||
const start = async () => {
|
const start = async () => {
|
||||||
try {
|
try {
|
||||||
await fastify.listen(port)
|
await fastify.listen(port, '0.0.0.0')
|
||||||
console.log(`Launched on port ${port} 🚀`)
|
console.log(`Launched on port ${port} 🚀`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
fastify.log.error(err)
|
fastify.log.error(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user