/** * PM2 — Montech on the shared montime host. * Ports: API 3050, Nuxt SSR 3051 (avoid CRM 3030/3040 and other occupied ports). * * pm2 start /var/www/montech/deploy/ecosystem.config.cjs * pm2 save */ module.exports = { apps: [ { name: "montech-api", cwd: "/var/www/montech/apps/api", script: "dist/src/main.js", instances: 1, exec_mode: "fork", env: { NODE_ENV: "production", PORT: "3050", }, max_memory_restart: "500M", time: true, }, { name: "montech-landing", cwd: "/var/www/montech/apps/landing", script: ".output/server/index.mjs", instances: 1, exec_mode: "fork", env: { NODE_ENV: "production", PORT: "3051", HOST: "127.0.0.1", NUXT_API_BASE: "http://127.0.0.1:3050", NUXT_PUBLIC_SITE_URL: "https://montech.ir", NUXT_PUBLIC_API_BASE: "", }, max_memory_restart: "700M", time: true, }, ], };