Add fast server update script

This commit is contained in:
武阳
2026-05-07 15:41:29 +08:00
parent 61e3cd1681
commit d84b6c568c
2 changed files with 59 additions and 0 deletions
+8
View File
@@ -46,6 +46,14 @@ APP_DIR="$HOME/zk-data-agent-test" bash "$HOME/zk-data-agent-test/scripts/instal
bash scripts/deploy-ubuntu.sh
```
已完成首次部署后,如果只是普通代码更新,可以使用快速更新:
```bash
bash scripts/update-server-fast.sh
```
快速更新只会拉取代码、构建前端并重启用户服务;如果本次改动包含依赖、systemd 模板或部署脚本变化,请使用 `scripts/deploy-ubuntu.sh`
如果是全新 Ubuntu 机器,首次安装可以让脚本顺手安装系统依赖:
```bash