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
+15
View File
@@ -0,0 +1,15 @@
module.exports = {
apps: [
{
name: 'product-issue',
script: 'dist/server/server/main.js',
cwd: __dirname,
instances: 1,
exec_mode: 'fork',
autorestart: true,
watch: false,
max_memory_restart: '512M',
kill_timeout: 10_000
}
]
}