Skip to content

Commit

Permalink
server.js listening to the port
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndi-Shema committed Jul 30, 2024
1 parent 5b9b3e1 commit 1b5a5f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const app = require('./app');
const port = process.env.PORT || 3000; // Default to port 3000 if not specified

const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});

0 comments on commit 1b5a5f3

Please sign in to comment.