Skip to content

chore: remove the self-hosted vm deploy path - #45

Merged
Vishwas1345 merged 2 commits into
mainfrom
chore/remove-vm-path
Oct 16, 2026
Merged

Vishwas1345 merged 2 commits into
mainfrom
chore/remove-vm-path

Conversation

@Vishwas1345

Copy link
Copy Markdown
Owner

Why

Render + Neon is the only deployment and 512 MB is all it needs (owner's decision), so the self-hosted VM path is unused infrastructure to maintain and explain.

What

  • Removed: docker-compose.prod.yml, deploy/Caddyfile, scripts/deploy.sh, backup.sh, restore.sh, .env.production.example, and their .gitignore lines.
  • Moved: deploy/render/{Dockerfile,start.sh} to deploy/; render.yaml's dockerfilePath updated in the same commit, so Render's build follows the move.
  • Code comments that named Caddy now say "a reverse proxy" (no behaviour change).
  • Kept: docker-compose.yml (dev, CI), compose.tracing.yml (opt-in trace viewer), the app Dockerfiles, the APP_ENV=production checks and TRUST_PROXY_HOPS (Render uses them), gitleaks.
  • Docs: DEPLOYMENT.md rewritten for Render only (440 to 140 lines; §0 kept so citations hold); INFRA, ARCHITECTURE, GAPS, docs/dev, specs, AGENTS and CLAUDE drop the VM path; feat(deploy): deploy to a single VM behind Caddy #38/fix(deploy): make the vm stack start, deploy and restore #43 stay as history.

Inventory behind it

An import graph from every entry point reaches all 208 source and test files; none is used only by tests, and no dependency is unused. The VM path was the only removable code.

Verified

  • Live-site safety: built deploy/Dockerfile exactly as Render will, booted under 512 MB against a throwaway database: reset empty, seeded, worker up, login 200 with all 5 security headers, 145 MB; restart: reset reset, login 200.
  • No reference to a removed file in code, config or CI; doc mentions only in history lines.
  • Every link and anchor resolves.
  • lint, typecheck, unit (693 api, 141 web), integration 238 twice on a fresh DB.

After merge Render rebuilds from ./deploy/Dockerfile; I will check the live site.

🤖 Generated with Claude Code

Vishwas1345 and others added 2 commits October 16, 2026 12:12
Render with Neon is the only deployment and 512 MB is all it needs, so the
VM stack goes: docker-compose.prod.yml, the Caddyfile, deploy/backup/restore
scripts and .env.production.example. The Render files move up from
deploy/render/ to deploy/, and render.yaml points at the new path in the same
commit so the live build follows it. Comments that named Caddy now say a
reverse proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DEPLOYMENT.md is rewritten for Render alone (440 lines to 140); every other
doc drops the VM path, keeping #38 and #43 as history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vishwas1345
Vishwas1345 merged commit 4b1921e into main Oct 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant