Skip to content

Commit

Permalink
Server Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukhendu2002 committed Mar 15, 2024
1 parent 2c689a4 commit 3597b47
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions server/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ const connectDB = async () => {
console.log(error);
}
};
connectDB();

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

const server = https.createServer({ key, cert }, app);

server.listen(8443, () => {
console.log("Server is running on port 8443");
try {
connectDB();
console.log("Server is running on port 8443");
} catch (error) {
console.log(error);
}
});

0 comments on commit 3597b47

Please sign in to comment.