From b6d79ff1ca236ac6f541348a52c6fbb8ecd09150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=87=E8=B6=A3=E4=BF=9D=E7=BD=97?= Date: Wed, 20 May 2026 21:36:01 +0800 Subject: [PATCH] Chore: Add PM2 Config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加 PM2 启动配置文件 --- ecosystem.config.cjs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ecosystem.config.cjs diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..74f61ff --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,20 @@ +module.exports = { + apps: [ + { + name: "cupcake", + script: "pnpm", + args: "start", + cwd: __dirname, + interpreter: "none", + instances: 1, + exec_mode: "fork", + autorestart: true, + watch: false, + max_memory_restart: "512M", + env: { + NODE_ENV: "production", + PORT: 3000, + }, + }, + ], +};