chore: add ecosystem configuration for delivery app and worker
Some checks failed
CI / Lint, Unit & Integration Tests (push) Has been cancelled

This commit is contained in:
MOHAN 2026-08-25 22:16:44 +05:30
parent cc20f20fe3
commit b38e2954c9
3 changed files with 29 additions and 0 deletions

Binary file not shown.

Binary file not shown.

29
ecosystem.config.cjs Normal file
View File

@ -0,0 +1,29 @@
module.exports = {
apps: [
{
name: "delivery-app-web",
script: "npm",
args: "run start",
cwd: __dirname,
env: {
NODE_ENV: "production",
PORT: "11002",
},
instances: 1,
autorestart: true,
max_memory_restart: "400M",
},
{
name: "delivery-app-worker",
script: "npx",
args: "tsx jobs/worker.ts",
cwd: __dirname,
env: {
NODE_ENV: "production",
},
instances: 1,
autorestart: true,
max_memory_restart: "300M",
},
],
};