Deploying to a VPS (From Zero to Live)
How to get your app onto a rented Linux box and reachable on the real internet - from spinning up the server and SSHing in, to running your app as a service that survives crashes and reboots, to a domain, a reverse proxy, and HTTPS.
Download EPUB- Get a Box and Get In A VPS is a rented slice of a Linux server you control entirely. Here's what that means, how to create one, how to SSH in for the first time, and the three first-login hardening steps - a non-root user, system updates, and a firewall - that protect a box exposed to the open internet.
- Run Your App as a Service Getting your code onto the box, running it once by hand, then handing it to systemd so it restarts on crash, comes back after a reboot, and survives your terminal closing. Plus how to confirm it's actually listening on its port.
- Make It Public & Safe Pointing a domain at your box with a DNS A record, putting nginx in front as a reverse proxy so your private app port is never exposed, and getting a free HTTPS certificate from Let's Encrypt - plus the safety rules that keep the whole thing from biting you later.