Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed Jun 1, 2024
1 parent dee3c3b commit 8d4ad4a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ app.use((err: Error, req: Request, res: Response, next: NextFunction) => {
res.status(500).send("Something went wrong!");
});

const PORT = process.env.PORT || 3001;
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
// const PORT = process.env.PORT || 3001;
// app.listen(PORT, () => {
// console.log(`Server is running on port ${PORT}`);
// });
const port = 8000; //testing if this works
app.listen(process.env.PORT || port, () => {
console.log("REST API is listening.");
});

0 comments on commit 8d4ad4a

Please sign in to comment.