docs: unify Ubuntu root /opt PM2 deployment and refresh README

Add docs/ubuntu-server.md; remove Windows and alternate process managers from deployment guides; index strategy, key monitor, TP/SL, breakeven, and replay docs in root README.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 11:48:54 +08:00
parent 546bc7bcf1
commit 1282293e91
16 changed files with 355 additions and 491 deletions
+8 -12
View File
@@ -31,9 +31,9 @@
安装示例:
```bash
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install flask requests ccxt werkzeug PySocks Pillow
cd /opt/crypto_monitor/crypto_monitor_gate
source .venv/bin/activate
pip install -r ../requirements.txt
```
## 配置(`.env.example` → `.env`
@@ -56,19 +56,15 @@ pip install flask requests ccxt werkzeug PySocks Pillow
其余见 **`.env.example` 内注释** 或 **`app.py` 顶部默认值**。
## 本地运行
## 运行
**Windows** 推荐使用 UTF-8 控制台脚本
生产使用 **PM2**`ecosystem.config.cjs`)。调试
```powershell
.\start_utf8.ps1
```bash
source .venv/bin/activate && python app.py
```
或直接:
```powershell
python .\app.py
```
见 [docs/ubuntu-server.md](../docs/ubuntu-server.md)。
端口由 **`APP_PORT`** 控制(未设置默认 **5000**)。浏览器登录 **`/login`**,口令为 **`APP_PASSWORD`**。