Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalbhatia authored Dec 25, 2023
1 parent ca1b699 commit ae3c972
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ app.use(errorHandler);

//Connection url
const PORT = process.env.PORT || 5000;
const host = '0.0.0.0';

//Connecting to database
const connectionUrl =
Expand All @@ -85,7 +84,7 @@ const connectionUrl =

mongoose.connect(connectionUrl, { useNewUrlParser: true, useUnifiedTopology: true })
.then(() => {
app.listen(PORT, host, () => {
app.listen(PORT, () => {
console.log(`Server is running on port : ${PORT}`);
})
})
Expand Down

0 comments on commit ae3c972

Please sign in to comment.