diff --git a/README.md b/README.md index cfe40a0..841e3f0 100644 --- a/README.md +++ b/README.md @@ -17,35 +17,17 @@ 数据挂载到仓库物理目录 `.runtime/`(不是仅存在容器层)。 -## 一键启动 +## 启动 先启动 **Docker Desktop**(Windows)或确保 `docker compose` 可用。 -### Windows -```powershell -.\start.ps1 # 默认 Compose 全栈 -.\start.ps1 -Rebuild -.\stop.ps1 -.\restart.ps1 # 先停再启 -``` -也可双击 `start.bat` / `restart.bat`。 +一键启停脚本(`start.sh` / `start.ps1`、`scripts/lib-aijz-deploy.sh` 等)**不纳入本仓库**,仅留本机运维目录。克隆后请用本机脚本,或直接 Compose: -### Linux ```bash -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 # 先停再启(不拉代码) +docker compose up -d --build +docker compose down # 保留 .runtime ``` -代码源默认:`https://gitea.yuxindazhineng.com/whm/ai_site.git`(分支 `main`)。 -可用环境变量 `AIJZ_GIT_URL` / `GIT_BRANCH` / `AIJZ_SKIP_GIT_PULL=1` 覆盖(见 `.env.example`)。 - -无 Docker 时脚本会**自动回退**宿主机模式(`--host` 可强制)。 - | 物理路径 | 内容 | |----------|------| | `.runtime/pgdata` | Postgres 数据 | @@ -55,13 +37,6 @@ chmod +x start.sh stop.sh restart.sh pull-and-restart.sh scripts/linux/*.sh 打开 http://127.0.0.1:5173 演示账号:`demo` / `demo123` -等价手动命令: - -```bash -docker compose up -d --build -docker compose down # 保留 .runtime -``` - ## 能力清单 | 能力 | 说明 |