Files
CRM_Montzar/deploy/ecosystem.config.cjs
T
2026-08-30 08:50:06 +03:30

26 lines
565 B
JavaScript

/**
* PM2 — Mento CRM on the shared montime host.
* Port 3030 avoids: montime(:3000), forisanad(:3001), superadmin(:3010), ktg(:3020).
*
* On server (as montime):
* pm2 start /var/www/crm/deploy/ecosystem.config.cjs
* pm2 save
*/
module.exports = {
apps: [
{
name: "mento-crm-api",
cwd: "/var/www/crm/apps/api",
script: "dist/src/main.js",
instances: 1,
exec_mode: "fork",
env: {
NODE_ENV: "production",
PORT: "3030",
},
max_memory_restart: "600M",
time: true,
},
],
};