scalingo server: dont listen only on localhost so that the server works

This commit is contained in:
Emmanuel Pelletier
2024-05-02 10:53:51 +02:00
parent 472e54237e
commit b20d116746

View File

@@ -13,7 +13,7 @@ fastify.register(fsfStatic, {
})
try {
fastify.listen({ port: process.env.PORT || 3000 })
fastify.listen({ port: process.env.PORT || 3000, host: "0.0.0.0" })
} catch (err) {
fastify.log.error(err)
process.exit(1)