docs: 同步 8/25 迁移(前端迁云 Caddy:80、Oracle 换新机 129.146.26.249、旧 IP 清理、Drive 中转设计说明)
This commit is contained in:
@@ -27,15 +27,15 @@ cp config/config.yaml.example config/config.yaml
|
||||
cd /volume1/web/sentinel-home-ai && bash start_core.sh
|
||||
```
|
||||
|
||||
### 1.3 FAM-UI(Vue3 SPA,无独立进程)
|
||||
### 1.3 FAM-UI(Vue3 SPA,托管于云服务器 Caddy :80)
|
||||
```bash
|
||||
cd /Users/ericwyuan/Desktop/Work/sentinel-home-ai/fam-ui # 本地开发机
|
||||
npm install
|
||||
npm run build # 产物 fam-ui/dist/
|
||||
# 部署 dist 到 NAS(构建产物不入库):
|
||||
tar czf - fam-ui/dist | ssh -p 2222 ericwyuan@192.168.50.64 \
|
||||
'cd /volume1/web/sentinel-home-ai && rm -rf fam-ui/dist && tar xzf -'
|
||||
# 浏览器访问 http://192.168.50.64:8000(由 FAM-Core static_app.py 托管,Vue Router history 回退)
|
||||
# 部署 dist 到云服务器(Caddy 静态目录,/api 经 frp 隧道反代回 NAS):
|
||||
tar czf - fam-ui/dist | ssh -i ~/.ssh/oracle_new ubuntu@129.146.26.249 \
|
||||
'sudo tar xzf - --strip-components=2 -C /var/www/fam-ui && sudo chown -R ubuntu:ubuntu /var/www/fam-ui'
|
||||
# 浏览器访问 http://129.146.26.249/(Caddy 托管,/api/* 反代 NAS fam-core)
|
||||
```
|
||||
|
||||
## 2. Oracle 端部署 (FAM-Edge + Ollama + FFmpeg)
|
||||
@@ -73,7 +73,7 @@ tar czf - --exclude=venv --exclude=__pycache__ fam-core | \
|
||||
|
||||
# Oracle(fam-edge):/opt/fam-edge 是 fam-edge 根,--strip-components=1 解临时目录再 cp
|
||||
tar czf - --exclude=venv --exclude=__pycache__ --exclude=data --exclude=gdrive_videos fam-edge | \
|
||||
ssh ubuntu@129.146.203.203 'mkdir -p /opt/fam-edge/tmp_d && tar xzf - --strip-components=1 -C /opt/fam-edge/tmp_d && \
|
||||
ssh ubuntu@129.146.26.249 'mkdir -p /opt/fam-edge/tmp_d && tar xzf - --strip-components=1 -C /opt/fam-edge/tmp_d && \
|
||||
cp -rf /opt/fam-edge/tmp_d/* /opt/fam-edge/ && rm -rf /opt/fam-edge/tmp_d && sudo systemctl restart fam-edge'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user