Skip to content

Commit

Permalink
chore: pass a explicit host to fastify
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed Nov 19, 2023
1 parent 5b1a606 commit e7b28d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { app } from './app';

const start = async () => {
try {
await app.listen({ port: Number(process.env.PORT) || 8000 });
await app.listen({
port: Number(process.env.PORT) || 8000,
host: '0.0.0.0',
});
} catch (err) {
app.log.error(err);
process.exit(1);
Expand Down

0 comments on commit e7b28d5

Please sign in to comment.