Skip to content

Commit

Permalink
use 5000 if port isn't available from env
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnejak committed May 19, 2024
1 parent c8cdc3c commit 7aa96a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fastify.register(opsRoutes, { prefix: "/api/ops" })

async function main() {
await fastify.listen({
port: parseInt(process.env.PORT as string),
port: parseInt(process.env.PORT || "5000"),
host: "0.0.0.0",
})
}
Expand Down

0 comments on commit 7aa96a7

Please sign in to comment.