feat: Added pm2

This commit is contained in:
dataeaseShu
2025-10-14 17:46:59 +08:00
committed by dataeaseShu
parent 1bfa28a963
commit 46bdafd62c
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module.exports = {
apps: [
{
name: "app",
script: "./app.js",
// 自动重启选项
autorestart: true, // 启用自动重启
restart_delay: 5000, // 重启延迟(毫秒)
},
],
};
+1
View File
@@ -8,6 +8,7 @@
"@rollup/plugin-json": "^6.1.0",
"lodash": "^4.17.21",
"nan": "^2.22.2",
"pm2": "^6.0.13",
"node-canvas": "^2.9.0",
"nprogress": "^0.2.0"
},