Repository navigation
fix(deploy): make the vm stack start, deploy and restore - #43
Merged
Merged
Conversation
The production compose passes ${CREDENTIALS_KEY:-}, so leaving the optional
key out produced an empty string the base64 check rejected, and the API never
started.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found by running it end to end for the first time: - deploy.sh, backup.sh and restore.sh were committed without the exec bit - the first deploy backed up a database that was not running yet, and aborted - Caddy refused its config: trusted_proxies belongs under servers - restore.sh fed backup.sh's plain-SQL dump to pg_restore, and counted tables in the wrong database - the live stream bypassed the web relay to reach the API directly - Redis could evict queued jobs (allkeys-lru, now noeviction) Also drops the unread API_PUBLIC_URL, adds the seed operator to the example env, and splits deploy.sh's health check so a failure names its part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vishwas1345
added a commit
that referenced
this pull request
Oct 16, 2026
The skills' check was npm run build, which never typechecks the tests; the recovery-action recipe missed the database enum, migration and policy table. Records #34-#43, the owner's push rule (trivial changes to main, everything else through a PR) and the narrowed vendor rule (no lab-platform or company names; tool and host names are fine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Vishwas1345
added a commit
that referenced
this pull request
Oct 16, 2026
ARCHITECTURE gains Google sign-in, both deploy shapes, the demo reset, the security headers and an audit-action table, and drops an invented production shape. INFRA, DEPLOYMENT and GAPS make Render the live path and state the rate limits as shared. PLAN records #34-#43; acceptance criteria are ticked where a test proves them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The audit found the VM deploy path (
docker-compose.prod.yml, Caddy,scripts/deploy|backup|restore.sh) had never been run. I ran it end to end locally withSITE_DOMAIN=localhost, and it could not start. The live Render deploy does not use any of this.Bugs fixed (each found by running it)
./scripts/deploy.sh-> permission denied on any clonechmod +xin gittrusted_proxiesas a global Caddy optionmain)servers { }CREDENTIALS_KEYfrom composerestore.shusedpg_restoreonbackup.sh's plain SQL, and counted tables inpostgrespsqlreplay; every query names its database/api/events/streamtoapi:4000flush_interval -1kept)allkeys-lrunoevictiondeploy.shhealth check went via the proxyAlso: the unread
API_PUBLIC_URLremoved;SEED_OPERATOR_USERNAME/PASSWORDadded to.env.production.example.Verified locally
deploy.shfirst run on an empty host (backup skipped), second run with a backup; both health checks passevent: ready; signed out it redirects to loginrestore.shon a real dump: 15 tables, scratch DB dropped, live DB untouched; a dump with no tables exits 1.env.productionremoved afterwardsNot verified: a real host, a Let's Encrypt certificate, public traffic.
🤖 Generated with Claude Code