photoreport-boot.service runs infra/deploy/boot.sh at boot (starts the PM2 apps from the last built code, without depending on a saved PM2 list); tmpfiles rule for TMPDIR; deploys pm2 save; PM2 retries with exponential backoff while the database starts.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
deploy.sh (set -u) now needs $HOME for the one-time rustup/wasm-bindgen
install under $HOME/.cargo (0cd5119). systemd gives services no HOME by
default, so every deploy of app since that commit failed immediately with
"HOME: unbound variable" -- both the real deploy and its rollback, leaving
pr-app stuck on the pre-0cd5119 build for 5+ pushes.
Paperclip-Issue: BIT-31073
Paperclip-Run: 325858bb-25b9-44f5-81f0-8309989d08ff