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

@@ -4,8 +4,9 @@ module.exports = {
apps: [
{
name: 'traxxx',
script: 'npm',
args: 'run server:prod',
// script: 'npm',
// args: 'run server:prod',
script: './src/app.js',
exec_mode: 'cluster',
instances: 2,
restart_delay: 3000,