Skip to content

Commit 59d2e3c

Browse files
committed
2 parents 5d1e686 + c3a0bd5 commit 59d2e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GamerMatchApp/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ let db: any;
102102
}
103103
});
104104

105-
const PORT = 3000; // relevant for calling from front end, can be changed I think
105+
const PORT = process.env.PORT || 3000; // changed to listen for host port or 3000 locally
106106
app.listen(PORT, () => console.log(`Server running on port ${PORT}`));
107107
} catch (e) {
108108
console.error("Failed to start server", e);

0 commit comments

Comments
 (0)