Skip to content

Add the production deployment tooling - #103

Merged
shaddi merged 1 commit into
mainfrom
production-deploy
Jul 1, 2026
Merged

Add the production deployment tooling#103
shaddi merged 1 commit into
mainfrom
production-deploy

Conversation

@shaddi

@shaddi shaddi commented Jul 1, 2026

Copy link
Copy Markdown
Member

A two-host layout: the web host runs nginx + the Flask backend; the data host runs Postgres 16, Redis, and the Celery worker/beat. Deploys pull CI-built images tagged by commit SHA rather than building on the hosts, so what runs in production is exactly what CI built.

  • deploy/: compose files for both hosts, deploy.sh (pins a checkout to a SHA and refuses a dirty tree), restore-and-migrate.sh, nginx.conf, an env template, and a README
  • docker_push.yml builds and pushes backend+worker images on every green main build; Dockerfile.backend now bakes the code so the image is a self-contained artifact
  • legacy_data_policy.py: mark migrated legacy filings filed and synthesize their service plans
  • remove the old build-on-host compose files and prod nginx conf

A two-host layout: the web host runs nginx + the Flask backend; the data
host runs Postgres 16, Redis, and the Celery worker/beat. Deploys pull
CI-built images tagged by commit SHA rather than building on the hosts, so
what runs in production is exactly what CI built.

- deploy/: compose files for both hosts, deploy.sh (pins a checkout to a
  SHA and refuses a dirty tree), restore-and-migrate.sh, nginx.conf, an
  env template, and a README
- docker_push.yml builds and pushes backend+worker images on every green
  main build; Dockerfile.backend now bakes the code so the image is a
  self-contained artifact
- legacy_data_policy.py: mark migrated legacy filings filed and synthesize
  their service plans
- remove the old build-on-host compose files and prod nginx conf
@shaddi
shaddi merged commit 5497a6d into main Jul 1, 2026
3 checks passed
@shaddi
shaddi deleted the production-deploy branch July 6, 2026 20:14
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