Files
Montech_Landing/deploy/ecosystem.config.cjs
T
MahdiandCursor 7e8e1b1f1b Initial Montech monorepo: Nuxt landing, Vue admin, Nest API.
Scaffold SSR site with CMS/blog/gallery/SEO admin and deploy configs for montech.ir.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 18:42:28 +03:30

42 lines
1002 B
JavaScript

/**
* 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,
},
],
};