#Deployment

11 posts

Deploying Python Web Apps to Production: gunicorn, uvicorn, systemd, Docker
5 min read

Deploying Python Web Apps to Production: gunicorn, uvicorn, systemd, Docker

From why the development server must never serve production traffic to the standard deployment stack: the WSGI and ASGI split, combining gunicorn with uvicorn workers, how to choose a worker count, managing the process with a systemd service, what the nginx reverse proxy is actually for, the basic shape of a Docker deployment, logs to stdout, health checks, and graceful shutdown — as a checklist.

Build a Desktop App with PySide6 #7: Packaging and Distribution — Building Executables with PyInstaller
7 min read

Build a Desktop App with PySide6 #7: Packaging and Distribution — Building Executables with PyInstaller

Bundle the app with PyInstaller so it runs on computers without Python installed. The onedir vs onefile trade-off, including data files, platform-specific caveats, and pyside6-deploy — the final part of the series.

Build a Desktop App with Wails #6: Build and Distribution — Packaging per Platform
5 min read

Build a Desktop App with Wails #6: Build and Distribution — Packaging per Platform

Build a single binary with wails build and package it as a Windows installer, a macOS app bundle, and a Linux binary. The final part of the series, covering the cross-compilation constraint, GitHub Actions matrix builds, and the outlook for v3.

Build an Online Shop with Next.js #5: Order Confirmation and Deployment
8 min read

Build an Online Shop with Next.js #5: Order Confirmation and Deployment

Close the user flow with an order confirmation page and deploy to Vercel to put the shop on the real internet. We wrap up by examining the limits of in-memory storage and exactly what needs fixing before this could become a production service.

Angular in Practice #6: Testing and Deployment — Wrapping the Track
11 min read

Angular in Practice #6: Testing and Deployment — Wrapping the Track

The final post of the practice series. We fill the dashboard with tests, package it with Docker, deploy it to Cloudflare Pages, and run a full CI/CD cycle with GitHub Actions. Then we look back across all 27 posts of the Angular track.

Django DRF #6: Testing and Deployment — Docker, gunicorn, nginx
13 min read

Django DRF #6: Testing and Deployment — Docker, gunicorn, nginx

Integration tests with APITestCase / APIClient / pytest-django / factory_boy, plus production deployment via Docker multi-stage + gunicorn + nginx + docker-compose.

Modern Python in Practice #6: Testing and Deployment — pytest, Docker, Railway/Fly
9 min read

Modern Python in Practice #6: Testing and Deployment — pytest, Docker, Railway/Fly

FastAPI integration tests with pytest + httpx, isolation via dependency overrides, multi-stage Docker builds, and cloud deployment to Railway/Fly.

Django Advanced #7: Deployment security — settings split, ALLOWED_HOSTS, CSRF, secret management
12 min read

Django Advanced #7: Deployment security — settings split, ALLOWED_HOSTS, CSRF, secret management

Settings split patterns, django-environ, DEBUG/ALLOWED_HOSTS/CSRF/HSTS, SECRET_KEY management, and manage.py check --deploy — what to verify before putting Django into production.

K8s Basics #4: Deployment and ReplicaSet — Declarative Deploys and Rolling Updates
14 min read

K8s Basics #4: Deployment and ReplicaSet — Declarative Deploys and Rolling Updates

A follow-up to the closing line of [#3](/en/posts/k8s-basics-3) — Pods are mortal, they just disappear when they die. This post writes a controller manifest for the first time. We pin down the three layers Deployment / ReplicaSet / Pod, watch auto-recovery when one Pod is deleted under replicas: 3, see how a one-character image-tag change drives a rolling update, and roll back a bad version with one command.

Build a Blog with Next.js #5: SEO and Deployment (Wrap-up)
8 min read

Build a Blog with Next.js #5: SEO and Deployment (Wrap-up)

Optimize for search engines with the metadata API, build sitemap and RSS, and deploy to Vercel. Wrap up with a retrospective across the series and the 31 React posts in total.

Go Practice #6 Testing and Deployment — httptest and Docker
6 min read

Go Practice #6 Testing and Deployment — httptest and Docker

Handler tests with httptest, integration test patterns, Docker multistage builds, and a small operations checklist.