Deployment
Getting an app from a laptop to a real address and keeping it there — hosting choices, domains, SSL, preview environments and zero-downtime releases.
123 posts · page 2 of 5
Nginx Reverse Proxy Configuration: A Production-Ready Example
A complete Nginx reverse proxy config for a Node.js or Python app, explained line by line: proxy_pass, forwarding headers, WebSockets, timeouts, upload limits, HTTPS redirect, gzip, static files, multiple apps by domain, and how to test and reload safely.
How to Host a Website for Free (and What 'Free' Really Means)
Static sites can be hosted free, properly, on GitHub Pages, Cloudflare, Netlify or Vercel. Apps with a backend and database are harder: free tiers sleep, expire or forbid commercial use. Which free options fit which kind of site, step by step, and the catches to know.
How to Host a Telegram Bot: Polling vs Webhooks, and Where to Run It
Telegram bots receive messages in one of two ways: long polling (your bot asks Telegram) or webhooks (Telegram calls your URL). How each works, which hosting fits each — a VPS, serverless functions, a container platform — with setup steps, token safety and the common mistakes.
How to Host a Discord Bot 24/7 (Python or JavaScript)
A Discord bot only works while its program is running. Why your laptop isn't enough, the hosting options (a VPS, a container platform, a Raspberry Pi), how to keep the bot running with systemd or PM2, storing the token safely, and why free hosts are a poor fit for bots.
Heroku Alternatives in 2026 (After Heroku Stopped Adding Features)
Salesforce moved Heroku into 'sustaining engineering' in February 2026 — no new features. Where Heroku users are going: Render, Railway, Fly.io, DigitalOcean App Platform, self-hosted PaaS like Coolify, or a plain VPS — with honest trade-offs for each.
GitHub Pages: Host a Website for Free From Your Repository
GitHub Pages hosts static websites straight from a GitHub repository, free, with HTTPS. How to publish a site, deploy a React or Vite app with GitHub Actions, add a custom domain, fix the common 404 and blank-page problems, and what it can't do.
GitHub Actions Secrets: How to Store and Use Them Safely
GitHub Actions secrets keep API keys, tokens and passwords out of your code while letting workflows use them. How to add repository, environment and organisation secrets, use them in a workflow, secrets vs variables, the fork and pull_request_target pitfalls, and OIDC instead of long-lived keys.
Deploy to a VPS With GitHub Actions: Push to Main, Ship to Production
Automate deploys to your own server: run tests in GitHub Actions, then SSH in and run your deploy script — or build a Docker image and pull it. Deploy keys, secrets, known_hosts, environments with approval, rollbacks, and keeping the SSH key's power limited.
"exec format error" in Docker: ARM vs x86 Images Explained
exec format error almost always means a container image built for one CPU architecture (ARM, like Apple Silicon Macs) is running on another (x86/amd64 servers), or vice versa. How to check, build for the right platform with --platform and buildx, and the other cause: scripts without a shebang or with Windows line endings.
Why Is My Environment Variable Undefined? (Vite, Next.js, Node)
Your .env file has the value but the code sees undefined. The reasons are almost always the same: the wrong prefix (VITE_, NEXT_PUBLIC_), the wrong file name or folder, not restarting the dev server, build-time vs runtime, or the variable never being set in production.
Dockerfile Explained: Every Line of a Simple Dockerfile
A Dockerfile is the recipe Docker follows to build an image. A line-by-line walkthrough of a real Dockerfile — FROM, WORKDIR, COPY, RUN, ENV, EXPOSE, CMD — why the order matters for caching, .dockerignore, and the beginner mistakes that make images slow, huge or insecure.
How to Deploy a React App (Vite): Every Option Explained
A Vite React app builds into static files, so you can host it almost anywhere. How to build it, deploy to Cloudflare, Netlify, Vercel or GitHub Pages, serve it from your own server with Nginx or Caddy, fix 404s on refresh and blank pages, and handle environment variables and an API.
How to Deploy a Node.js App to a VPS, Step by Step
From an empty Ubuntu server to your Node.js app running on your own domain with HTTPS: create a user, install Node, clone and build, keep it running with PM2 or systemd, put Caddy or Nginx in front, and set up redeploys.
How to Deploy a Flask App to Production
Flask's built-in server is for development only. How to deploy a Flask app properly: the app factory and config from environment variables, Gunicorn, a reverse proxy with HTTPS, running it as a systemd service, a Docker option, and the mistakes that cause 502s.
How to Deploy a FastAPI App to Production
Running uvicorn main:app --reload is for development. A production FastAPI deploy needs worker processes, a process manager or container, a reverse proxy with HTTPS, proper settings, migrations, and health checks. Step-by-step options for a VPS and Docker.
How to Deploy an Express.js App to Production
Getting an Express API from localhost to a real server: production settings, listening on PORT, trust proxy, security middleware, a process manager, a reverse proxy with HTTPS, Docker as an option, and the checks that prevent the usual 502s and crashes.
How to Deploy a Django App to Production (Step by Step)
Taking a Django project from runserver to production: settings for DEBUG, ALLOWED_HOSTS and secrets, Postgres, collectstatic and WhiteNoise, Gunicorn behind Nginx or Caddy, systemd, migrations on deploy, HTTPS, and the checklist Django itself gives you.
Coolify vs Dokploy: Self-Hosted PaaS Compared
Coolify and Dokploy turn your own VPS into a Heroku- or Vercel-like platform: push to Git, get a deploy with HTTPS, databases and backups. How they compare on features, architecture, multi-server support and maturity — and what you still have to look after yourself.
Cloudflare Proxied vs DNS Only: The Orange Cloud Explained
In Cloudflare's DNS settings, the orange cloud sends traffic through Cloudflare and the grey cloud doesn't. What changes with each, which records must be grey, the SSL modes that avoid redirect loops, and how proxying interacts with your host's automatic SSL.
Cloudflare Error 521, 522 and 525: What They Mean and How to Fix Them
Cloudflare's 52x errors mean Cloudflare couldn't talk properly to your server. 521: your server refused the connection. 522: it timed out. 525: the HTTPS handshake failed. How to tell which part is broken and fix it — usually the web server, firewall, or SSL mode.
Blue-Green vs Canary vs Rolling Deployments
Three ways to release a new version without taking your app down or betting everything on it working. How blue-green, canary and rolling deployments work, what each needs, how they handle database migrations, and a pragmatic approach for a small app on one or two servers.
504 Gateway Timeout: What It Means and How to Fix It
A 504 means the proxy in front of your app (Nginx, Cloudflare, a load balancer) gave up waiting for a response. The usual causes — slow database queries, long tasks done in the request, external APIs, timeouts set too low — and how to find and fix each.
502 Bad Gateway: What It Means and How to Fix It
A 502 means the server in front of your app (Nginx, Cloudflare, a load balancer) couldn't get a valid answer from your app. The usual causes — app crashed, wrong port, still starting, out of memory — and a step-by-step way to find which one.
500 Internal Server Error: How to Find What Actually Broke
A 500 error means your server-side code threw an error it didn't handle. The page tells you nothing on purpose; the real message is in your logs. Where to look, the most common causes in AI-built apps, and how to stop users seeing a bare 500.