ข้ามไปยังเนื้อหา

Issue: Rogowski CT install guide published to Cloudflare Pages (obh-guides.pages.dev)

  • Date: 2026-08-28
  • GitHub issue: racksync/obh-iot#18
  • Status: Done 2026-08-28 — guide live at https://obh-guides.pages.dev/, content verified byte-identical to the repo copy
  • Area: Documentation delivery / Cloudflare Pages / RACKSYNC CF account
  • Owner: RACKSYNC (Damrongwit)

The Eastron Rogowski coil field-installation guide (การคล้องคอยล์ — positions, cable-tie routing, CT1 settings, pre-energize checklist, 6 embedded site photos, Thai/English) was originally built as a claude.ai artifact in session d0fe0d13 (Aug 14–23, 2026). The team no longer uses claude.ai, so the guide needed a claude-independent delivery path.

Step Result
Recovery Source HTML found still alive in the session scratchpad under /private/tmp/claude-501/.../d0fe0d13.../scratchpad/rogowski-ct-guide.html (2,073,021 B). Two copies (rogowski-ct-guide.html, eastron-rogowski-install.html) were byte-identical
Standalone wrap Artifact body had no doctype/head/body skeleton (the artifact host injects it at publish time). Wrapped with explicit <!doctype html>/<head>/<body> at the </style> boundary; HTML-parser validated — tag balance clean, no orphans
Repo copy docs/guides/eastron-rogowski-install.html (2,073,186 B) committed 54ef2bd
Pages deploy New project obh-guides under RACKSYNC CF (d354b7320012cf83b89eea38683a6139), production branch main, file deployed as index.html. First deployment 9b13fd3c
Verification https://obh-guides.pages.dev/ → HTTP 200, 2,073,186 B served; sha256 of served copy == repo copy (4f8d7363c48b…). Thai title renders (<title>การติดตั้งคอยล์ Eastron Rogowski</title>)
  • Wrangler OAuth login (RACKSYNC NOC account — redacted 2026-11-20) on this Mac, scope includes pages:write.
  • The login is a member of 6 Cloudflare accounts — every deploy command must pin CLOUDFLARE_ACCOUNT_ID=<RACKSYNC-CF-ID, redacted> (RACKSYNC CF), or wrangler aborts in non-interactive mode.
  • The scratchpad under /private/tmp is volatile — macOS may purge it at any time. The repo copy is now the canonical source; the scratchpad copy can be discarded.
Terminal window
# Roll back content: restore previous index.html in the Pages project
# (redploy: replace docs/guides/eastron-rogowski-install.html in repo, then)
CLOUDFLARE_ACCOUNT_ID=d354b7320012cf83b89eea38683a6139 \
wrangler pages deploy <dir> --project-name=obh-guides --branch=main
# Tear down entirely (removes obh-guides.pages.dev + project):
# Cloudflare dash → Workers & Pages → obh-guides → Settings → Delete
  • The deployment URL 9b13fd3c.obh-guides.pages.dev had an SSL handshake failure ~1 min after deploy — per-deployment cert issuance lag; production URL unaffected. Confirm it resolves eventually, or ignore.
  • No CI pipeline: redeploying after a guide edit is manual (wrangler pages deploy). Could add a GitHub Actions workflow mirroring racksync-manual’s (needs CLOUDFLARE_API_TOKEN secret, which neither this repo nor racksync-manual has — see the related work noted below).
  • Project currently serves a single index.html. If more guides are added, switch to one directory per guide (/rogowski/, /solar/, …) with a small index page.
  • Audit issue #13 — credential rotation (the same Cloudflare token question overlaps with CI setup).
  • Audit issue #15 — off-site backup policy (out of scope here, referenced for the “no off-site copy” pattern).