Document Git-only deploy workflow and reduce positions page IPC blocking.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
|
||||
## 快速开始
|
||||
|
||||
> **发布铁律**:本地改代码 → 提交并 `git push` → 服务器 **仅** `git pull` / `git reset --hard origin/main` 更新。**禁止 SCP 复制代码到服务器。** 详见 [部署文档 · 代码发布铁律](docs/DEPLOY.md#代码发布铁律强制不容置疑)。
|
||||
|
||||
**服务器(Ubuntu)**
|
||||
|
||||
```bash
|
||||
@@ -40,7 +42,7 @@ cd /opt/qihuo && bash deploy.sh
|
||||
# 访问 http://<IP>:6600
|
||||
```
|
||||
|
||||
**更新**
|
||||
**更新**(须先在本机 `git push`)
|
||||
|
||||
```bash
|
||||
cd /opt/qihuo
|
||||
@@ -50,6 +52,8 @@ python scripts/run_schema_migrate.py
|
||||
pm2 restart ecosystem.config.cjs --update-env
|
||||
```
|
||||
|
||||
**禁止** 使用 `scp` / 手工复制更新服务器代码。
|
||||
|
||||
生产环境须同时维护 **`qihuo`**(Web)与 **`qihuo-ctp`**(CTP Worker)两个 PM2 进程。
|
||||
|
||||
详见 [部署文档](docs/DEPLOY.md)。
|
||||
|
||||
Reference in New Issue
Block a user