fixed server logic
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user