Chore: Add PM2 Config

增加 PM2 启动配置文件
This commit is contained in:
2026-05-20 21:36:01 +08:00
parent 81deef7374
commit b6d79ff1ca
+20
View File
@@ -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,
},
},
],
};