DevOps and the Path from Code to Server

What DevOps really means, what happens between git push and a live website, and the Linux skills you need on the way. Start here for the whole roadmap.

Beginner⏱ 5 min readLesson 1 of 17#devops#deployment#linux#roadmap#ci-cd

The big idea

Writing code is like cooking a meal in your kitchen. Deployment is running a restaurant: the food must reach real customers, hot and safe, every day, even when the chef is asleep.

DevOps is the set of habits and tools that gets software from a developer's laptop to real users quickly, safely and repeatably, and keeps it running afterwards.

💡 DevOps is not a job title or a single tool. It's a way of working: automate the boring steps, measure what happens in production, and make releasing so routine that it stops being scary.

From git push to a live website

Code moves through build, test and release to a server, and monitoring feeds back into the next change

StageWhat happensTools you'll meet
1. CodeYou write and commit codeGit, GitHub
2. BuildInstall dependencies, compile, bundlenpm ci, npm run build, Docker
3. TestAutomated checks catch mistakes before users doJest, Playwright, linters
4. ReleaseCopy the build to a server and switch traffic to itGitHub Actions, SSH, rsync, Docker registry
5. RunThe app runs as a service and restarts if it crashesLinux, systemd, Nginx, Docker
6. MonitorWatch errors, speed, disk and memoryLogs, uptime checks, Prometheus, Grafana

Then the loop starts again with the next change. Teams that do this well deploy many times a day, and each deploy is small, so problems are easy to find and undo.

Why Linux?

About 96% of the top million web servers run Linux, and almost every cloud server, Docker container and Kubernetes node is Linux underneath. Even if you develop on Windows or macOS, your code almost certainly runs on Linux.

You want to…You need to know…
Log in to a serverSSH and keys
Find out why the site is downLogs, processes, ports
Keep the app running after a crash or rebootsystemd services
Serve a domain with HTTPSNginx and Let's Encrypt
Stop attackersUsers, permissions, firewalls
Automate a deployBash scripts, cron, CI/CD

Where your app can run

OptionWhat you manageGood forExample
VPS (virtual private server)The whole Linux serverSmall/medium apps, learning, low costHetzner, Contabo, DigitalOcean, EC2
PaaS (platform as a service)Only your codeFast start, no server workVercel, Render, Railway, Heroku
ContainersImages + an orchestratorMany services, consistent environmentsDocker Compose, ECS, Kubernetes
ServerlessFunctions onlySpiky or event-driven workloadsAWS Lambda, Cloudflare Workers

This section focuses on the VPS path because it teaches you what every other platform is doing for you behind the scenes. Once you understand a Linux server, PaaS, Docker and Kubernetes all make much more sense.

A typical small production setup

Drawing diagram…

Every box in this picture has a lesson in this section.

The roadmap

#LessonYou'll be able to…
2Command-line essentialsMove around a server, read files, search logs
3Users, permissions & sudoRun apps safely without root
4Processes & systemdKeep an app running and read its logs
5SSH, networking & firewallsLog in securely and open only the ports you need
6Bash scripting & cronAutomate deploys and scheduled jobs
7Nginx & HTTPSPut a domain with a free certificate in front of your app
8Deploy a Node.js app to a VPSDo the whole thing end to end
9CI/CD with GitHub ActionsDeploy automatically on every push
10Docker in productionShip the same image everywhere
11Zero-downtime deploys & rollbacksRelease without errors and undo in seconds
12Monitoring, logs & backupsKnow about problems before users tell you
13Troubleshooting & interview questionsFix "the site is down" calmly
14CI/CD fundamentals & pipeline designDesign a pipeline that works in any tool
15Jenkins: install to first pipelineRun Jenkins and write a Jenkinsfile
16Jenkins in productionBuild, approve and deploy Docker images from Jenkins
17Running Kafka in productionOperate a Kafka cluster: tuning, security, monitoring, upgrades

DevOps principles worth remembering

  • Automate anything you do twice. A script never forgets a step at 2 a.m.
  • Small, frequent releases. A 20-line change is easy to debug; a 2,000-line release is not.
  • Everything in Git. Code, config, server setup, CI pipelines. If it's not in Git, it can't be reviewed or restored.
  • Same build everywhere. Build once, then deploy that exact artifact to staging and production.
  • You build it, you run it. Developers see production logs and metrics, not just their own laptop.
  • Measure, don't guess. Deployment frequency, failure rate, time to recover (the DORA metrics).

Key takeaways

  • DevOps = getting code to users fast, safely and repeatably, then keeping it healthy.
  • The pipeline is code → build → test → release → run → monitor, in a loop.
  • Production almost always means Linux, so the command line is a core skill.
  • A VPS teaches you the fundamentals that PaaS, Docker and Kubernetes automate.

Try it yourself

Write down every manual step you take today to put your app online. Circle the ones you've forgotten at least once. Those are the first things to automate in the lessons ahead.