PM2 ecosystem file calls src/app directly, should fix cluster problem.

This commit is contained in:
2026-01-27 01:04:28 +01:00
parent 87604ed848
commit 74c69c698e
3 changed files with 8 additions and 5 deletions

View File

@@ -175,7 +175,9 @@ export default async function initServer() {
app.use(router);
const port = process.env.PORT || config.web.port || 3000;
app.listen(port);
// const port = Math.round(Math.random() * 10000);
logger.info(`Server running at http://localhost:${port}`);
app.listen(port, config.web.host);
logger.info(`Server running at http://${config.web.host}:${port}`);
}