chore: add ecosystem configuration for delivery app and worker
Some checks failed
CI / Lint, Unit & Integration Tests (push) Has been cancelled
Some checks failed
CI / Lint, Unit & Integration Tests (push) Has been cancelled
This commit is contained in:
parent
cc20f20fe3
commit
b38e2954c9
BIN
C2C_Delivery_Pickup_Scheduler_Requirements.docx
Normal file
BIN
C2C_Delivery_Pickup_Scheduler_Requirements.docx
Normal file
Binary file not shown.
BIN
DS_Delivery_Date_Time_App_Study.docx
Normal file
BIN
DS_Delivery_Date_Time_App_Study.docx
Normal file
Binary file not shown.
29
ecosystem.config.cjs
Normal file
29
ecosystem.config.cjs
Normal 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",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user