feat: 新增 Plan B 整目录重装脚本,不影响 setup_env 一键安装
添加 deploy/reinstall.sh 备份 env、克隆、调 setup_env、恢复配置并 PM2 启动; 附带 pm2_start_all.sh 与 hub_settings 清理工具。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+14
-3
@@ -102,13 +102,24 @@ pm2 restart all # 或按进程名 restart
|
||||
|
||||
| 目录 | ecosystem 内典型名称 |
|
||||
|------|---------------------|
|
||||
| `crypto_monitor_binance` | `crypto-monitor-binance` |
|
||||
| `crypto_monitor_gate` | `crypto-monitor-gate` |
|
||||
| `crypto_monitor_okx` | `crypto-monitor-okx` |
|
||||
| `crypto_monitor_binance` | `crypto_binance` |
|
||||
| `crypto_monitor_gate` | `crypto_gate` |
|
||||
| `crypto_monitor_okx` | `crypto_okx` |
|
||||
| `manual_trading_hub` | `manual-trading-hub`、`manual-agent-*` |
|
||||
|
||||
以各目录 **`ecosystem.config.cjs`** 为准。
|
||||
|
||||
### 3.4 整目录重装(清库 / 去脏 PM2)
|
||||
|
||||
保留 `.env`、丢弃旧库与旧 PM2 名单时,见 **[deploy/reinstall-plan-b.md](../deploy/reinstall-plan-b.md)**:
|
||||
|
||||
```bash
|
||||
cd /opt/crypto_monitor
|
||||
bash deploy/reinstall.sh --yes
|
||||
```
|
||||
|
||||
首次安装仍只用 `deploy/setup_env.sh`,二者互不影响。
|
||||
|
||||
---
|
||||
|
||||
## 4. 目录与权限
|
||||
|
||||
Reference in New Issue
Block a user