Detect Python/Node/PM2 on deploy (install only if missing); uninstall removes /opt/eth_hedge_sim.

Keep .env and DB backup under /root/backups before deleting the install directory.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 23:08:51 +08:00
parent 2b348854fe
commit 4d331da962
6 changed files with 185 additions and 30 deletions
+9
View File
@@ -5,6 +5,15 @@
---
## 2026-07-26 — 一键部署环境检测 / 卸载删目录
### 变更
1. **一键部署 / 更新**:检测 Python3+venv、Node/npm、PM2**已有则跳过**,缺失才 apt/npm 安装。
2. **一键卸载**:备份 `.env` 与数据库后,**直接删除** `/opt/eth_hedge_sim`(并清理历史 `.removed` / `.old` 残留);不卸载系统级 Python/Node/PM2。
---
## 2026-07-26 — 自动备份 / 下载 / 上传恢复
### 变更