Skip to content
quarry View Ticket
Login

View Ticket

VPS deploy: build from the store, health check, free-space floor, rollback

Closed8eb0ca531ac70ded71d6a5718e96ebf80905a99cCreated 87.6 days agoUpdated 67.9 days ago
Description2026-09-04 09:15:28
Port qdeploy.sh to the host: open trunk from the store into a scratch tree, build with the version stamp, refuse below a free-space floor (JetStream refuses to start on a nearly full disk and took the demo down twice on 2026-09-03), swap the binary, health-check the new process, and put the previous binary back if it does not bind within a deadline. Runs as the deploy user over the tailnet. Depends on the Linux build recipe and the systemd units.
2026-09-04 13:26:31

Done: /srv/quarry/deploy.sh on the host opens trunk from the store into a scratch tree, builds with the version stamp inside a golang container, refuses below a 3 GB free-space floor, installs beside the previous binary, restarts the unit, health-checks, and puts the previous binary back if the new one does not answer in 60 s. Since the origin flip it builds from its own store; QUARRY_UPSTREAM pulls from another forge only when set.