Franky Bonanno
From Laptop to Server – Terminal Recipes for Python and Django Developers

Terminal recipes · Python 3.14 · Django 6.1

From Laptop to Server – Terminal Recipes for Python and Django Developers

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.

  • 4beats in every recipe
  • 9areas, from rsync to deploys that roll back
  • 3.14Python, with Django 6.1
Get it on Amazon Shipping and payment handled by Amazon

The story

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:

  • Symptom: what you see on the screen, often with the exact error message.
  • Cause: why it happens (without this, a fix is just a magic formula).
  • Command: what to run, ready to paste.
  • Check: how to know it really worked.

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.

What's inside

  • Transferring and Syncing: rsync and scp without surprises, SSH aliases, dry runs, what to exclude.
  • Surgical Patches: change one line in a file with sed, here-documents and Python, and always be able to go back.
  • Diagnosing from Logs: read from the bottom, count instead of reading, time windows, following live, and the Django 500 you cannot see.
  • Docker and Compose: the container that keeps restarting, files missing from the image, variables that do not arrive, data lost after a down, health checks.
  • Django in Production: settings from the environment, check --deploy, 400 and 403 errors behind a proxy, static files, migrations, a real test with gunicorn and curl, PostgreSQL backup and restore.
  • Servers and Network: file ownership after rsync, connections that drop, who is listening on which port, reaching a database through an SSH tunnel, SSH keys and fingerprints.
  • The Python Environment: externally-managed-environment, virtual environments with Python 3.14, requirements that tell the truth, one-file scripts with uv.
  • Packaging and Deployment: safe rsync --delete, releases with an instant switch, git archive, shared files, and a deploy that goes back by itself when the site does not answer.
  • Classic Mistakes and Checklist: the errors everyone makes sooner or later, a pre-release checklist, and an index from symptom to recipe.

Who it is for

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.

Stack

Python 3.14, Django 6.1, Docker Compose, PostgreSQL, gunicorn, on Linux (Ubuntu, Linux Mint, Debian).

Why this book

Symptom, Cause, Command, Check

Every recipe has the same four beats, so you find your problem and fix it fast.

Real outputs

Every lab was executed while the book was built: the outputs you see are the real ones.

Tools that last

ssh, scp, rsync, sed, cat, grep, awk: the commands that do not change every six months.

Who it's for

Python and Django developers

You write on a laptop and deploy to a VPS, a home server or a company machine.

The self-taught

Every chapter ends with a command reference, so you do not need to be a bash expert.

Anyone who deploys on Fridays

A pre-release checklist and an index from symptom to recipe.

What's inside

Transferring and Syncing

rsync and scp without surprises, SSH aliases, dry runs, what to exclude.

Surgical Patches

Change one line with sed, here-documents and Python, and always be able to go back.

Diagnosing from Logs

Read from the bottom, count instead of reading, follow live, the Django 500 you cannot see.

Docker and Compose

The container that keeps restarting, missing files, variables that do not arrive, health checks.

Django in Production

Settings from the environment, check --deploy, 400 and 403 behind a proxy, static files, PostgreSQL backup and restore.

Servers and Network

File ownership after rsync, dropped connections, who is listening, SSH tunnels and keys.

The Python Environment

externally-managed-environment, virtual environments, requirements that tell the truth, uv.

Packaging and Deployment

Safe rsync --delete, instant-switch releases, a deploy that goes back by itself.

Classic Mistakes and Checklist

The errors everyone makes, a pre-release checklist, an index from symptom to recipe.

The book

Author
Franky Bonanno
Language
English
Year
2026
Stack
Python 3.14, Django 6.1, Docker Compose, PostgreSQL, gunicorn
Systems
Linux: Ubuntu, Linux Mint, Debian

The author

Franky Bonanno lives in Catania, Sicily. A software developer with more than twenty years of experience, he writes novels and technical books.

Ready to take it to the server?

Get it on Amazon Shipping and payment handled by Amazon