2 paths · 7 to 9 lessons · 75–95 min Intermediate

Deploy on a VPS — minimal DevOps

A hardened Debian/Ubuntu server, your Symfony app on HTTPS and backed up. Your choice: the Docker path (FrankenPHP, automatic deploys on every git push) or the by-hand path (PHP-FPM, deploy script). The system of a well-run personal project.

FR EN
Progress 0/7

The common core: everyone starts here

1

What is a VPS?

Hotel, empty flat or Airbnb? Shared hosting, VPS, PaaS: pick the right level of control, the right provider, the right size — and your first SSH login.

10 min
2

Hardening your VPS

Bots hit your IP from minute one. The 5 moves that lock the door: deploy user, SSH keys, ufw, fail2ban, automatic updates.

12 min
3

systemd, the caretaker

Your Messenger worker must survive a 3 a.m. crash and a reboot. One .service file, Restart=always, and journalctl to read what happened.

10 min

Then two paths, one destination

Both cover HTTPS, deploys, a way back and backups. At the end of lesson 3 you choose. Undecided? The by-hand path is shorter, and what you learn there stays true afterwards.

🐳 Docker path · 6 lessons · 63 min

Reproducible and automated: Compose, GitHub Actions CI, git push = live.

🧰 By-hand path · 4 lessons · 43 min

Simple and readable: apt, Caddy, a deploy script, cron.

What you will learn

Harden a VPS in 5 moves: deploy user, SSH keys, firewall, fail2ban, auto-updates

Run an app that survives crashes and reboots (systemd, Docker Compose) with automatic HTTPS (Caddy)

Set up automated deployment: git push → tests → SSH → healthcheck, with secrets handled properly

Make the system robust: atomic switch, one-command rollback, off-site backups, downtime alerts

Prerequisites: being comfortable with the terminal and Git (see the Git & terminal course). The Testing your code course is the ideal companion: your tests are what will block a bad deploy. Every command is practiced here in a simulated terminal — no server to pay for to follow the course.

Start lesson 1

Free · No signup · 10 minutes