← All guides

Deploying This Site on Debian 13

The repository is a deployable tree that mirrors the server root. You don’t install it like a normal Node app — you copy it into / and reload nginx.

Layout

Repo pathBecomes on server
site-main/var/www/reality//var/www/reality/ (nginx root)
site-main/etc/nginx//etc/nginx/

Install

sudo DOMAIN=example.com ./site-main/scripts/install.sh

The script substitutes __DOMAIN__ placeholders in the nginx config, copies the tree into place, enables the site, and runs nginx -t then reload.

Add a guide

  1. Drop a Markdown file into site-main/web/src/content/guides/.
  2. Run npm run build inside site-main/web/.
  3. Commit the rebuilt site-main/var/www/reality/ and redeploy.

There is no upload backend by design — guides are version-controlled.