Add PM2 ecosystem config
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user