From ccf503a89b81ed7c040df18c78d4ec9398b24ce4 Mon Sep 17 00:00:00 2001 From: singharaj usai Date: Sat, 26 Oct 2024 00:19:44 -0400 Subject: [PATCH] fix attempt app listen node --- server/server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/server.js b/server/server.js index c6d39f5..d9949de 100644 --- a/server/server.js +++ b/server/server.js @@ -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;