Fix PM2 startup failures on ARM routers with Node.js incompatibility (#2828)

* Initial plan

* Add fallback mechanism for PM2 startup failures on incompatible hardware

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
Copilot
2025-11-16 20:29:32 +08:00
committed by GitHub
parent eb09a417a1
commit fbeb4f4a6c
2 changed files with 26 additions and 4 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ export_ql_envs
import_config "$@"
fix_config
pm2 l &>/dev/null
# Try to initialize PM2, but don't fail if it doesn't work
pm2 l &>/dev/null || log_with_style "WARN" "PM2 初始化可能失败,将在启动时尝试使用备用方案"
log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..."
reload_pm2