Skip to content

Commit

Permalink
updated server
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 10, 2023
1 parent 91e7244 commit 8f37f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// backend/src/server.ts
import app from "./app";

const PORT = process.env.PORT || 5000;
const PORT = process.env.PORT ? +process.env.PORT : 5000;

app.listen(PORT, () => {
app.listen(PORT, "0.0.0.0", () => {
console.log(`Server running on http://localhost:${PORT}`);
});

0 comments on commit 8f37f2c

Please sign in to comment.