feat: 添加可配置升级次数和优化日志时间戳

1. 在pm2.json中添加进程管理配置
2. 在YAML配置中增加upgrade_count字段控制升级次数
3. 修改升级逻辑支持N次升级后切换版本
4. 为API调用日志添加ISO时间戳
5. 更新项目文档说明可配置升级次数
This commit is contained in:
2026-01-22 14:06:22 +08:00
parent 99279006a2
commit 834ac02da5
6 changed files with 21 additions and 9 deletions

View File

@@ -2,6 +2,10 @@
"apps": [{
"name": "rcu-upgrade-service",
"script": "./src/index.js",
"instances": 1,
"exec_mode": 'fork',
"autorestart": true,
"watch": false,
"env": {
"NODE_ENV": "production"
},