feat(pm2): add ecosystem config for cluster mode (6 instances, 512MB)
CI / check (push) Successful in 21s
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m4s

This commit is contained in:
openhands committed 2026-07-30 19:03:28 +02:00
1 parent 1e3b7bc31d
commit 4ec75c2c1d
1 file changed
+22
+22
View File
@@ -0,0 +1,22 @@
module.exports = {
apps: [
{
name: "next",
script: "pnpm",
args: "start",
exec_mode: "cluster",
instances: 0,
max_memory_restart: "512M",
env: {
NODE_ENV: "production",
PORT: 3002,
RCON_PORT: 3003,
NEXT_PHASE: "phase-production-server",
},
merge_logs: true,
error_file: ".pm2/errors.log",
out_file: ".pm2/out.log",
log_date_format: "YYYY-MM-DD HH:mm:ss",
},
],
};