Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 26, 2024
2 parents 41c0dc1 + ccf503a commit eb3a564
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,11 @@ app.use((req, res, next) => {
});

// Call this function after the server starts
if (process.env.NODE_ENV !== 'production') {
app.listen(port, async () => {
console.log(`Server running at http://localhost:${port}`);
app.listen(port, '0.0.0.0', async () => {
console.log(`Server running at http://0.0.0.0:${port}`);
if (process.env.NODE_ENV !== 'production') {
await resetUserIdsIfNeeded();
});
}
}
});

module.exports = app;

0 comments on commit eb3a564

Please sign in to comment.