ci(deploy): 仅允许 master 自动部署

This commit is contained in:
admin committed 2026-09-14 16:09:02 +08:00
1 parent 77e05998a5
commit 8171705c5f
8 files changed
+74 -24

No files matched your search

+2 -2
View File
@@ -67,10 +67,10 @@ PORT=8080 ./start_dashboard.sh # 或指定端口
服务器部署使用根目录的 `deploy.sh`:
```bash
DEPLOY_BRANCH=dev ./deploy.sh
DEPLOY_BRANCH=master ./deploy.sh
```
脚本会拉取指定分支,自动创建 `.venv`,安装 `requirements.txt`,执行数据库迁移,然后重启 `weread.service`。GitHub Actions 配置在 `.github/workflows/deploy.yml`,默认监听 `dev` 分支。
脚本只允许拉取 `master` 分支,随后自动创建 `.venv`、安装 `requirements.txt`、执行数据库迁移并重启 `weread.service`。GitHub Actions 配置在 `.github/workflows/deploy.yml`,只监听 `master` 分支,详细配置见 [master 自动部署](docs/deploy-master.md)。
运行端口、Python 环境、HTTPS 证书和接口故障的诊断方法见 [日常维护与故障排查](docs/troubleshooting.md)。