diff --git a/server/app.js b/server/app.js index 313714f..7e50cd8 100644 --- a/server/app.js +++ b/server/app.js @@ -121,7 +121,7 @@ app.put("/api/database/update/:id", async (req, res) => { // Start the server -const PORT = 5501; +const PORT = process.env.PORT || 5501; app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); });