Add deploy.sh and update AGENTS.md with cross-machine workflow
This commit is contained in:
12
AGENTS.md
12
AGENTS.md
@@ -31,6 +31,18 @@
|
||||
- API 設定存於 `localStorage('portal_config')`
|
||||
- 401 回應會自動清除登入狀態並跳回 `/login`
|
||||
|
||||
## 跨機器推送與測試(M4mini → M5Max128)
|
||||
|
||||
Gitea 伺服器在 `m5max128.local:3000`。開發在 M4mini 進行,測試在 M5Max128:
|
||||
```bash
|
||||
# 一鍵推送 + 部署 + 建置
|
||||
./deploy.sh [commit message]
|
||||
|
||||
# 或手動
|
||||
git commit -am "..." && git push
|
||||
ssh accusys@m5max128.local "cd ~/momentry_portal && git pull && npm run build"
|
||||
```
|
||||
|
||||
## 注意事項
|
||||
|
||||
- `tsconfig.json` 啟用 `strict` + `noUnusedLocals` + `noUnusedParameters` — 未使用的變數/參數會造成 `vue-tsc` 建置錯誤
|
||||
|
||||
Reference in New Issue
Block a user