docs(vps): update VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE to v2.3.0 with Section 2 instructions for untracked haiperdohp-jemaytreeah .gitignore files and 28-route harness (v1.0.0)

This commit is contained in:
Hermes Agent committed 2026-11-29 23:38:41 +00:00
1 parent 2e6b32323e
commit 469815e563
5 files changed
+204 -96

No files matched your search

@@ -1,19 +1,19 @@
# Production VPS & Git Operator Deployment Guide (`v2.1.0` — Direct Per-Repository Install Directory Edition)
# Production VPS & Git Operator Deployment Guide (`v2.3.0` — Direct Per-Repository Install Directory & Untracked `.gitignore` Artifact Edition)
- **Document ID:** `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE` (`v2.1.0`)
- **Document ID:** `VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE` (`v2.3.0`)
- **Target Domain:** `https://hyperstitionstud.io` (and `https://www.hyperstitionstud.io` -> `308` redirect)
- **Upstream Git Forge:** `git.libre.audio` (`https://git.libre.audio/seasharp/<repo-slug>.git`)
- **Bundled Deployment Automation (`hyperstitionstudio-core/deploy/`):**
- `deploy/sync-vps-repos.sh` — Pulls from `git.libre.audio`, compiles `calc/db.json` if absent, runs `hs-doctor` and 6-gate Knowledge Graph verification, syncs per-repo install directories into RAM (`/var/www/hyperstitionstud.io/repos`), creates relative route symlinks, and pre-compresses `.br` (Brotli-11) and `.gz` (Gzip-9) sidecars.
- `deploy/sync-vps-repos.sh` — Pulls from `git.libre.audio`, automatically supplies untracked `haiperdohp-jemaytreeah/.gitignore` runtime files (`config.js`, `db.json`, `db_lite.json`) if absent, runs `hs-doctor` and 6-gate Knowledge Graph verification, syncs per-repo install directories into RAM (`/var/www/hyperstitionstud.io/repos`), creates relative route symlinks, and pre-compresses `.br` (Brotli-11) and `.gz` (Gzip-9) sidecars.
- `deploy/Caddyfile` — Production Caddy 2 configuration (`HTTP/3 QUIC` + `precompressed br gzip` + direct per-repo `handle_path` routing).
- `deploy/hyperstition-tmpfs-sync.service` — `systemd` unit that hydrates `/var/www/hyperstitionstud.io/repos` on VPS boot before Caddy starts.
- `deploy/test-first-deployment.sh` — Automated 22-route HTTP verification harness (works both locally before VPS provisioning and against live `https://hyperstitionstud.io`).
- `deploy/test-first-deployment.sh` — Automated 28-route HTTP verification harness (verifies all portal, graph, encyclopedia, `haiperdohp-jemaytreeah` `.gitignore` files `config.js`/`db_lite.json`/`db.json`, CI, and schema routes).
---
## 1. Master 1-to-1 Mapping: `git.libre.audio` Repository -> VPS Install Dir -> Web Route
Each sibling repository on `git.libre.audio` is cloned into `/srv/hyperstitionstud.io/repos/<repo-slug>` on NVMe and synced 1-to-1 into the `256 MB` RAM-backed `tmpfs` mount at `/var/www/hyperstitionstud.io/repos/<repo-slug>`:
Each sibling repository on `git.libre.audio` is cloned into `/srv/hyperstitionstud.io/repos/<repo-slug>` on NVMe and synced 1-to-1 into the `512 MB` RAM-backed `tmpfs` mount at `/var/www/hyperstitionstud.io/repos/<repo-slug>`:
| # | Repository Slug (`seasharp/<repo>`) | Public HTTPS Clone URL (`git.libre.audio`) | Persistent VPS Clone (`/srv/hyperstitionstud.io/repos/*`) | Direct Web Route(s) on `https://hyperstitionstud.io` |
| :- | :--- | :--- | :--- | :--- |
@@ -21,18 +21,46 @@ Each sibling repository on `git.libre.audio` is cloned into `/srv/hyperstitionst
| **2** | `ingglish-hyperdope-gematria` (`main`) | `https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-gematria` | • `/archive/*` (`ingglish-aq-archive/`) |
| **3** | `technocapital-singularity-zoology` (`v1.7.0`) | `https://git.libre.audio/seasharp/technocapital-singularity-zoology.git` | `/srv/hyperstitionstud.io/repos/technocapital-singularity-zoology` | • `/encyclopedia/*` (`encyclopedia/`)<br/>• `/technocapital-singularity-zoology/*` (sibling PDF link target)<br/>• `/zoology/*` (root reports, tier list, glossary, `dossiers/`) |
| **4** | `encyclopedia-knowledge-graph` (`v1.0.0`) | `https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git` | `/srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph` | • `/graph/*` (`index.html`, `graph-data.js`, `atlas-mode*.png`, `.json`, `.graphml`, `.gexf`, `.canvas`, `docs/`) |
| **5** | `haiperdohp-jemaytreeah` (`main`) | `https://git.libre.audio/seasharp/haiperdohp-jemaytreeah.git` | `/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah` | • `/calc/*` (`index.html`, `calc/*.js`, `db.json`, `db_lite.json` — confluence of `hyperdope-ci-build` output & upstream `hyperdope-gematria`) |
| **5** | `haiperdohp-jemaytreeah` (`main`) | `https://git.libre.audio/seasharp/haiperdohp-jemaytreeah.git` | `/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah` | • `/calc/*` (`index.html`, `config.js`, `calc/*.js`, `db.json`, `db_lite.json` — confluence of `hyperdope-ci-build` output & upstream `hyperdope-gematria`) |
| **6** | `ingglish-hyperdope-ci` (`feat/ingglish-aq-corpus`) | `https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git` | `/srv/hyperstitionstud.io/repos/ingglish-hyperdope-ci` | • `/ci/*` (`ONBOARDING-INGGLISH-AQ.pdf`, `ci-audit-report.json`, `db.txt`, `db_ingglish_entries.txt`) |
---
## 2. Testing the First Deployment Locally (Zero VPS / Zero Root Required)
## 2. Supplying Untracked Runtime Files Listed in `haiperdohp-jemaytreeah/.gitignore`
Before touching a production VPS, any operator or new user can test the complete deployment hydration, route mapping, and all 25 portal & deep-link routes locally in **one command**:
Because `haiperdohp-jemaytreeah/.gitignore` intentionally excludes three runtime files from Git version control to avoid bloating repository clones with `100 MB` of compiled JSON binaries, a fresh `git clone` of `haiperdohp-jemaytreeah` must be supplied with those three files before serving `/calc/`:
| Untracked File in `haiperdohp-jemaytreeah/.gitignore` | Size | Tracked Source File in Git | How It Is Supplied for `/calc/*` |
| :--- | :--- | :--- | :--- |
| **`config.js`** | `3.3 KB` | `config.default.js` | Copied directly from `config.default.js`:<br/>`cp config.default.js config.js` |
| **`db.json`** | `80.7 MB` | `db.txt` (`231,615` entries) + `tools/generate_db_json.py` | Precomputed 82-cipher JSON database; generated by running:<br/>`python3 tools/generate_db_json.py db.txt db.json` |
| **`db_lite.json`** | `19.4 MB` | `db.txt` (`231,615` entries) + `tools/generate_db_json.py` | Precomputed 16-cipher progressive first-paint database; automatically written alongside `db.json` by the same `python3 tools/generate_db_json.py db.txt db.json` command. |
Operators can supply these three untracked files on the target machine using **either Option A (Self-Contained Local Generation)** or **Option B (Direct `rsync` from Workstation)**:
- **Option A — Generate on the Target Machine / VPS from Tracked Git Files (Automatic in `sync-vps-repos.sh`):**
```bash
cd /srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah
cp -n config.default.js config.js
python3 tools/generate_db_json.py db.txt db.json
cd /srv/hyperstitionstud.io/repos
```
*(Note: `deploy/sync-vps-repos.sh` checks for `config.js`, `db.json`, and `db_lite.json` automatically and runs both commands if any of the three files is missing).*
- **Option B — Fast `rsync` Transfer of Pre-Built Files from Workstation to VPS (Skips ~3-Min CPU Build):**
```bash
rsync -avP /home/m00t/hermes/workspace/haiperdohp-jemaytreeah/{config.js,db.json,db_lite.json} \
<user>@<LINODE_IP>:/srv/hyperstitionstud.io/repos/haiperdohp-jemaytreeah/
```
---
## 3. Testing the First Deployment Locally (Zero VPS / Zero Root Required)
Before touching a production VPS, any operator or new user can test the complete deployment hydration, untracked `haiperdohp-jemaytreeah` file check (`config.js`, `db_lite.json`, `db.json`), route mapping, and all 28 portal & deep-link routes locally in **one command**:
```bash
# Hydrates /tmp/hyperstition-live-repos, starts a local HTTP server on 127.0.0.1:18090,
# and verifies HTTP 200 OK across all 25 routes (including /calc/* from haiperdohp-jemaytreeah):
# and verifies HTTP 200 OK across all 28 routes (including /calc/config.js, /calc/db_lite.json, /calc/db.json):
./hyperstitionstudio-core/deploy/test-first-deployment.sh
```
@@ -46,7 +74,7 @@ python3 -m http.server 8090 --bind 127.0.0.1 --directory /tmp/hyperstition-live-
---
## 3. Production Linode / Akamai VPS First Deployment (Sequential Steps 1–7)
## 4. Production Linode / Akamai VPS First Deployment (Sequential Steps 1–7)
Follow Steps 1 through 7 in order on a fresh **Debian 12 (Bookworm)** or **Ubuntu 24.04 LTS** Linode VPS (`2 GB` or `4 GB` RAM plan):
@@ -95,7 +123,7 @@ grep -q '/var/www/hyperstitionstud.io/repos' /etc/fstab || \
sudo mount -a
```
### Step 5: Clone All 6 `git.libre.audio` Repositories & Initialize `.venv`
### Step 5: Clone All 6 `git.libre.audio` Repositories, Supply `.gitignore` Files & Initialize `.venv`
```bash
cd /srv/hyperstitionstud.io/repos
@@ -108,6 +136,10 @@ git clone "${FORGE_HTTPS}/encyclopedia-knowledge-graph.git"
git clone "${FORGE_HTTPS}/haiperdohp-jemaytreeah.git"
git clone -b feat/ingglish-aq-corpus "${FORGE_HTTPS}/ingglish-hyperdope-ci.git"
# Supply untracked runtime files listed in haiperdohp-jemaytreeah/.gitignore (config.js, db.json, db_lite.json)
cp haiperdohp-jemaytreeah/config.default.js haiperdohp-jemaytreeah/config.js
(cd haiperdohp-jemaytreeah && python3 tools/generate_db_json.py db.txt db.json)
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
@@ -122,7 +154,7 @@ python3 -m venv .venv
### Step 6: Hydrate RAM Mount, Enable Boot Persistence & Reload Caddy
```bash
# 1. Hydrate /var/www/hyperstitionstud.io/repos, compile calc/db.json, and pre-compress (.br / .gz)
# 1. Hydrate /var/www/hyperstitionstud.io/repos and pre-compress (.br / .gz)
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh --no-pull
# 2. Install systemd boot-time tmpfs hydration unit
@@ -140,7 +172,7 @@ sudo systemctl reload caddy
### Step 7: Verify Live Production Deployment (`test-first-deployment.sh`)
```bash
# Verify all 22 routes return HTTP 200 OK on https://hyperstitionstud.io
# Verify all 28 routes (including /calc/config.js, /calc/db_lite.json, /calc/db.json) return HTTP 200 OK
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/test-first-deployment.sh https://hyperstitionstud.io
# Measure DNS, QUIC/TLS handshake, and sub-15ms TTFB
@@ -149,12 +181,12 @@ curl -o /dev/null -s -w "DNS: %{time_namelookup}s | TLS/QUIC: %{time_appconnect}
---
## 4. Ongoing Per-Repository Updates on the VPS
## 5. Ongoing Per-Repository Updates on the VPS
To pull and deploy updates from `git.libre.audio` for all repositories or a single repository:
```bash
# Update all 5 repositories, run 6-gate audit, and sync to RAM:
# Update all 6 repositories, run 6-gate audit, and sync to RAM:
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/sync-vps-repos.sh all
# Or update a single repository in < 1.5 seconds: