2026-08-29 21:06:30 +03:30
|
|
|
/**
|
|
|
|
|
* 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",
|
2026-08-30 08:50:06 +03:30
|
|
|
cwd: "/var/www/crm/apps/api",
|
|
|
|
|
script: "dist/src/main.js",
|
2026-08-29 21:06:30 +03:30
|
|
|
instances: 1,
|
|
|
|
|
exec_mode: "fork",
|
|
|
|
|
env: {
|
|
|
|
|
NODE_ENV: "production",
|
|
|
|
|
PORT: "3030",
|
|
|
|
|
},
|
|
|
|
|
max_memory_restart: "600M",
|
|
|
|
|
time: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|