mirror of
https://github.com/KingHWJ/WeReadBoard.git
synced 2026-11-03 18:24:58 +08:00
ci(deploy): 添加 dev 自动部署脚本
This commit is contained in:
1 parent
e5d1b7fa42
commit
bbc4bdd140
8 files changed
+284
-2
No files matched your search
@@ -61,6 +61,16 @@ PORT=8080 ./start_dashboard.sh # 或指定端口
|
||||
> v2 的书架、统计、推荐、搜索等数据实时来自微信读书接口;
|
||||
> 未运行 `fetch_data.py` 时也能使用,只有进度/笔记等局部数据会缺少缓存加速。
|
||||
|
||||
## 自动部署
|
||||
|
||||
服务器部署使用根目录的 `deploy.sh`:
|
||||
|
||||
```bash
|
||||
DEPLOY_BRANCH=dev ./deploy.sh
|
||||
```
|
||||
|
||||
脚本会拉取指定分支,自动创建 `.venv`,安装 `requirements.txt`,执行数据库迁移,然后重启 `weread.service`。GitHub Actions 配置在 `.github/workflows/deploy.yml`,默认监听 `dev` 分支。
|
||||
|
||||
## 功能模块
|
||||
|
||||
| 模块 | 说明 |
|
||||
|
||||
Reference in new issue
Block a user