/** * 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, }, { name: "mento-stt", cwd: "/var/www/crm/apps/stt", script: ".venv/bin/python", args: "-m uvicorn main:app --host 127.0.0.1 --port 3040", interpreter: "none", instances: 1, exec_mode: "fork", max_memory_restart: "1500M", time: true, }, ], };