Add PM2 ecosystem config

This commit is contained in:
Hamza-Ayed
2026-07-06 17:08:21 +03:00
parent cdfd1b8e02
commit 281bceb121
@@ -0,0 +1,34 @@
module.exports = {
apps: [
{
name: "siro-pricing-surge",
script: "dist/index.js",
args: "--mode=surge --hours=3",
instances: 1,
exec_mode: "fork",
cron_restart: "0 * * * *", // كل ساعة على رأس الساعة
autorestart: false,
watch: false
},
{
name: "siro-pricing-full",
script: "dist/index.js",
args: "--mode=full --hours=72",
instances: 1,
exec_mode: "fork",
cron_restart: "0 6 * * *", // كل يوم الساعة 6 صباحاً
autorestart: false,
watch: false
},
{
name: "siro-pricing-report",
script: "dist/index.js",
args: "--mode=report",
instances: 1,
exec_mode: "fork",
cron_restart: "0 8 * * 0", // كل يوم أحد الساعة 8 صباحاً
autorestart: false,
watch: false
}
]
};