Learning note
How this site publishes technical notes
How Astro, Sveltia and a restricted deployment pipeline separate browser-based writing from production delivery.
Authoring and serving are separate
The public site is generated by Astro and served by Caddy behind Cloudflare Tunnel. Sveltia edits Markdown in a private GitHub repository; it does not render visitor requests.
| Component | Responsibility |
|---|---|
| Sveltia | Edit content and save drafts |
| Astro | Generate public pages |
| Pagefind | Search the generated content |
| VPS deployment poller | Install verified releases |
Drafts are branches
Saving a draft keeps changes on a separate branch. Publishing merges the entry into main. That merge starts the release checks; the article becomes live only after a successful deployment.
Browser editor -> draft branch -> main
main -> VPS build and checks -> Caddy
The production gate
The VPS fetches the new commit with read-only repository access. A rootless Podman build runs the checks and generates the site. The deployment service tests the static files with Caddy, switches the site to the new release, then checks the public revision. Failed builds leave the previous release online.
The deployment and rollback study describes the foundations of this delivery approach.
Fewer runtime services
Search runs in the browser using a generated Pagefind index. The former API and PostgreSQL containers are stopped and retained for recovery. Neither is needed to serve the current public site.
Recovery includes unpublished work
Encrypted publication backups include Git refs, local media and host recovery configuration. The recovery identity stays off the VPS. Restore checks verify the source bundle and required host files before reporting success.
Off-VPS copies remain a separate operating task: an encrypted archive stored only on the server does not protect against losing that server.