Deployment

A shop ledger page, 1899. Every line adds up.
How to Deploy Next.js with a Separate Backend API
Deploy a Next.js frontend and a separate backend API with clear origins, secure environment variables, and consistent networking.
2 min read
How to Deploy a FastAPI Application with Docker
Package a FastAPI service in Docker and prepare it for deployment with configuration, health checks, non-root execution, and production server settings.
4 min read
Automatic Rollback When a Container Deploy Fails
Tag images by commit SHA, gate each deploy on a healthcheck, remember the previous image, and use a small script that reverts automatically when the new version is unhealthy.
4 min read
Keeping Postgres Data Across Docker Deploys, with Startup Order and Domain Routing
Use named volumes so a redeploy does not wipe your database, make the app wait for Postgres with a healthcheck, route a domain through Caddy, and keep backups.
4 min read
Run Django Migrations Exactly Once in a Multi-Server Deploy
Running migrate on every server at startup causes races and half-applied deploys. Run it once in a release step and keep migrations backward compatible.
5 min read
Deploying New Code While Old Celery Tasks Are Still Queued
After a deploy, queued Celery messages built for the old signature hit new code and fail. Learn how to change task arguments and names safely.
4 min read