Symptom, Cause, Command, Check
Every recipe has the same four beats, so you find your problem and fix it fast.
Terminal recipes · Python 3.14 · Django 6.1
It works on your laptop. Now make it work on the server. Real problems, solved late in the evening, with a command ready to paste.
It works on your laptop. Now make it work on the server.
The container keeps restarting. The files arrive with the wrong owner. The site answers 500 and the log says nothing. A deploy leaves you half-updated.
From Laptop to Server is a notebook of terminal recipes for Python and Django developers, collected from real problems solved late in the evening. It is not a manual. Every recipe has the same four beats, so you can find your problem and fix it fast:
The commands are the ones found on every Linux machine that do not change every six months: ssh, scp, rsync, sed, cat, grep, awk. Every lab was executed while the book was built, and the outputs you see are the real ones. Each chapter ends with a command reference that explains every option used, so you do not need to be a bash expert.
Developers who write Python and Django on a laptop and put it on a server (a VPS, a home server, a small company machine) and want a book they can keep open next to the terminal.
Python 3.14, Django 6.1, Docker Compose, PostgreSQL, gunicorn, on Linux (Ubuntu, Linux Mint, Debian).
Every recipe has the same four beats, so you find your problem and fix it fast.
Every lab was executed while the book was built: the outputs you see are the real ones.
ssh, scp, rsync, sed, cat, grep, awk: the commands that do not change every six months.
You write on a laptop and deploy to a VPS, a home server or a company machine.
Every chapter ends with a command reference, so you do not need to be a bash expert.
A pre-release checklist and an index from symptom to recipe.
rsync and scp without surprises, SSH aliases, dry runs, what to exclude.
Change one line with sed, here-documents and Python, and always be able to go back.
Read from the bottom, count instead of reading, follow live, the Django 500 you cannot see.
The container that keeps restarting, missing files, variables that do not arrive, health checks.
Settings from the environment, check --deploy, 400 and 403 behind a proxy, static files, PostgreSQL backup and restore.
File ownership after rsync, dropped connections, who is listening, SSH tunnels and keys.
externally-managed-environment, virtual environments, requirements that tell the truth, uv.
Safe rsync --delete, instant-switch releases, a deploy that goes back by itself.
The errors everyone makes, a pre-release checklist, an index from symptom to recipe.
Franky Bonanno lives in Catania, Sicily. A software developer with more than twenty years of experience, he writes novels and technical books.