feat: Linux one-click start pulls from Gitea ai_site

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-07-31 10:20:46 +08:00
parent 6366859bb3
commit 3d2851a1f1
5 changed files with 86 additions and 14 deletions

View File

@@ -32,13 +32,18 @@
### Linux
```bash
chmod +x start.sh stop.sh restart.sh scripts/linux/*.sh
./start.sh # 默认 Compose
chmod +x start.sh stop.sh restart.sh pull-and-restart.sh scripts/linux/*.sh
./start.sh # 默认先从 Gitea 拉代码再 Compose 启动
./start.sh --rebuild
./start.sh --no-pull # 跳过拉取
./pull-and-restart.sh # 拉最新后重启
./stop.sh
./restart.sh # 先停再启
./restart.sh # 先停再启(不拉代码)
```
代码源默认:`https://gitea.yuxindazhineng.com/whm/ai_site.git`(分支 `main`)。
可用环境变量 `AIJZ_GIT_URL` / `GIT_BRANCH` / `AIJZ_SKIP_GIT_PULL=1` 覆盖(见 `.env.example`)。
无 Docker 时脚本会**自动回退**宿主机模式(`--host` 可强制)。
| 物理路径 | 内容 |