Files
CRM_Montzar/deploy/ecosystem-crm2.config.cjs

27 lines
567 B
JavaScript

/**
* PM2 — Mento CRM preview (crm2.montzar.ir)
* Port 3032. Does not start STT; reuse mento-stt on 3040.
*
* pm2 start /var/www/crm2/deploy/ecosystem-crm2.config.cjs
* pm2 save
*
* Never restart mento-crm-api from this file.
*/
module.exports = {
apps: [
{
name: "mento-crm2-api",
cwd: "/var/www/crm2/apps/api",
script: "dist/src/main.js",
instances: 1,
exec_mode: "fork",
env: {
NODE_ENV: "production",
PORT: "3032",
},
max_memory_restart: "600M",
time: true,
},
],
};