Skip to content

Runbook: wiki viewer rebuild/deploy ​

Build ​

bash
python3 /home/timo/.yuma-workspace/build_yuma_wiki_vitepress.py
cd /home/timo/.yuma-workspace/yuma-vitepress
npm install --no-audit --no-fund
npm run docs:build

Deploy ​

bash
rsync -az -e "ssh -i /home/timo/.ssh/yuma_pi" \
  /home/timo/.yuma-workspace/yuma-vitepress/docs/.vitepress/dist/ \
  yuma@100.104.151.112:/home/yuma/yuma-wiki-site/

Gebruik hier bewust geen --delete voor normale deploys. Open Home Assistant/WebView-sessies kunnen nog oude VitePress search-chunks nodig hebben; oude chunks laten staan voorkomt dat zoeken stukgaat tot de pagina opnieuw is geladen.

Verifiëren ​

bash
curl -sS -o /tmp/yuma-vitepress-index.html -w '%{http_code}\n' http://100.104.151.112:8000/
curl -sS -o /tmp/yuma-vitepress-nood.html -w '%{http_code}\n' http://100.104.151.112:8000/00-start-hier/noodkaart.html

Verwacht: HTTP 200 en inhoud met Yuma Wiki / VPNav.