πŸ“‹ Operational Runbooks

Executive Summary What this is: The central index for operational procedures, deployment scripts, and troubleshooting guides for the Funday platform. When to use: When deploying services, verifying health, or troubleshooting live environments. INTENDED vs LIVE: Vault/ESO and some Nakama β€œproduction complete” language may describe intended control plane β€” check banners on Secrets and Nakama multiplayer.

Safe behaviors: Use standard scripts over manual intervention. Always verify health post-deployment. Never leak or log operational secrets in chat or documentation.

Find

Quick reference for common operational tasks and commands.

RunbookWhen to useCommand / path
Shipping truth & hidden workBefore choosing what to work on next β€” deploy model, gitignored prod artifacts, stash/worktree ledgerShipping Truth cheat sheet
Frontend deployAfter frontend or game-host changesbash /home/usr/funday/scripts/build-atomic.sh
Frontend healthAfter deploy/restartcurl -sf http://127.0.0.1:3000/health
Nakama module buildAfter nakama-modules/*.ts changescd /home/usr/funday/nakama-modules && npm run build
Nakama restartAfter verified Nakama bundle changesudo k3s kubectl rollout restart deployment/nakama -n funday-platform
Wiki rebuildAfter wiki content/config changescd /home/usr/funday/dev/docs && npx quartz build && sudo systemctl restart quartz-wiki
Wiki watcherConfirm auto-builder servicesudo systemctl status quartz-wiki
nginx reloadAfter nginx config changessudo nginx -t && sudo systemctl reload nginx
Ompcord daemonAfter Amy/Ompcord config/code changessudo systemctl reload amyd or node /home/usr/pi-discord-amy/redeploy.mjs

Implement

Step-by-step procedures for deploying and operating services.

Frontend deploy

See the canonical Frontend deploy runbook for preflight checks, the supported entry point, artifact gates, rollback, and prohibited paths.

Nakama deploy

cd /home/usr/funday/nakama-modules
npm run build
 
sudo k3s kubectl rollout restart deployment/nakama -n funday-platform
sudo k3s kubectl rollout status deployment/nakama -n funday-platform
curl -sf https://funday.gg/v2/healthcheck

Edit TypeScript sources, then rebuild. Do not hand-edit generated nakama-modules/index.js.

Wiki publication

For production publication (atomic release with staging and pointer swap):

cd /home/usr/funday/dev/docs
npm run build:docs

Content-only updates do not require a frontend build or service restart.

For local, non-publishing validation of edits before publication:

cd /home/usr/funday/dev/docs
npx quartz build --output /tmp/quartz-validate-$$
rm -rf /tmp/quartz-validate-*

Served at funday.gg/dev/docs/wiki/ (iframe) behind nginx; shell at funday.gg/dev/docs.

Ompcord/Amy checks

Amy runs as amyd.service (enabled on boot, Restart=always). Credentials: ~/.omp/.env (OMPCORD_DISCORD_*) β†’ bootstrap β†’ ~/.config/amy/amyd.env. Separate from Hoe/Hermes β€” see Ompcord deployment.

sudo systemctl status amyd.service
tail -5 /home/usr/pi-discord-amy/amyd.log   # ONLINE as Amy#0305
node /home/usr/pi-discord-amy/scripts/bootstrap-amy-env.mjs  # after ~/.omp/.env changes
cd /home/usr/pi-discord-amy && bun test

Detailed Procedures

Architecture and system details related to operational procedures.

7 items under this folder.

Ask Docs

AI assistant to help answer questions about the documentation. Answers are read-only and cite docs/source.

Hi! How can I help you with the documentation today? Answers are read-only and cite docs/source.

Ctrl+Enter to send