fixed server logic

This commit is contained in:
2025-12-14 18:05:59 -06:00
parent 5a5a23aaf8
commit 5283936705
6 changed files with 6 additions and 23 deletions

View File

@@ -84,15 +84,9 @@ app.use((req, res, next) => {
// Other ports are firewalled. Default to 5000 if not specified.
// this serves both the API and the client.
// It is the only port that is not firewalled.
const port = parseInt(process.env.PORT || "5000", 10);
httpServer.listen(
{
port,
host: "0.0.0.0",
reusePort: true,
},
() => {
log(`serving on port ${port}`);
},
);
const port = Number(process.env.PORT) || 5000;
httpServer.listen(port, "127.0.0.1", () => {
log(`serving on http://127.0.0.1:${port}`);
});
})();