mirror of
https://github.com/KingHWJ/WeReadBoard.git
synced 2026-11-03 18:24:58 +08:00
ci(deploy): 改为 GitHub Webhook 触发部署
This commit is contained in:
1 parent
69bfe3ce0e
commit
469630e7da
11 files changed
+267
-78
No files matched your search
@@ -64,13 +64,13 @@ PORT=8080 ./start_dashboard.sh # 或指定端口
|
||||
|
||||
## 自动部署
|
||||
|
||||
服务器部署使用根目录的 `deploy.sh`:
|
||||
服务器部署使用根目录的 `deploy.sh`,由 GitHub Webhook 通知服务器触发:
|
||||
|
||||
```bash
|
||||
DEPLOY_BRANCH=master ./deploy.sh
|
||||
```
|
||||
|
||||
脚本只允许拉取 `master` 分支,随后自动创建 `.venv`、安装 `requirements.txt`、执行数据库迁移并重启 `weread.service`。GitHub Actions 配置在 `.github/workflows/deploy.yml`,只监听 `master` 分支,详细配置见 [master 自动部署](docs/deploy-master.md)。
|
||||
脚本只允许拉取 `master` 分支,随后自动创建 `.venv`、安装 `requirements.txt`、执行数据库迁移并重启 `weread.service`。GitHub Actions 只做代码验证,不再通过 SSH 登录服务器;详细配置见 [master 自动部署](docs/deploy-master.md)。
|
||||
|
||||
运行端口、Python 环境、HTTPS 证书和接口故障的诊断方法见 [日常维护与故障排查](docs/troubleshooting.md)。
|
||||
|
||||
|
||||
Reference in new issue
Block a user