feat: test.sh remote+ssh modes; clean-install clears proxy SQLite (search history); install.sh applies canonical base schema (000_base) + pgvector

This commit is contained in:
2026-11-08 21:47:25 +08:00
parent ef5f750838
commit c58a5c131c
4 changed files with 381 additions and 123 deletions
+21
View File
@@ -1,5 +1,26 @@
# Momentry 安裝模式說明
## 測試 (test.sh) — 本機 / 遠端皆可
```bash
# 本機測試 (這台機器安裝後)
./test.sh
# 從任何機器遠端 HTTP 測試 (只需網路可達, 不需本機工具)
./test.sh --host=192.168.110.203
./test.sh --host=nextorageai.momentry.ddns.net --scheme=https
# 遠端深度測試 (含 SSH: psql 資料庫內容、二進制檢查、lsof 端口)
./test.sh --host=192.168.110.203 --ssh=accusys
# 外部 domain HTTPS 測試
./test.sh --host=nextorage.momentry.ddns.net --scheme=https
```
- `--host=<IP>` → 純 HTTP 測試 (SPA/API/登入/token 功能)
- `--host=<IP> --ssh=<user>` → 加測資料庫表數、二進制、端口 (psql 位置自動偵測: 203 用 /opt/homebrew, m5max 用 ~/opt_pgsql)
- `--quick` → 跳過資料庫/二進制/外部測試
## 三種安裝模式
### 1. 全新安裝 (install.sh)