Add PM2 deployment support

This commit is contained in:
lofyer
2026-08-24 17:59:49 +08:00
parent 5ff80caf7e
commit 63bbbac922
16 changed files with 450 additions and 55 deletions
+3
View File
@@ -14,6 +14,9 @@
"build:admin": "vite build",
"build:server": "tsc -p tsconfig.server.json",
"start": "node dist/server/server/main.js",
"pm2:start": "npm run build && pm2 start ecosystem.config.cjs",
"pm2:reload": "npm run build && pm2 reload ecosystem.config.cjs --update-env",
"pm2:stop": "pm2 stop product-issue",
"admin:create": "tsx src/server/cli/create-admin.ts",
"admin:create:prod": "node dist/server/server/cli/create-admin.js",
"typecheck": "tsc --noEmit -p tsconfig.server.json && tsc --noEmit -p tsconfig.admin.json && tsc --noEmit -p tsconfig.test.json",