What does server deployment cover?
Two related jobs. The first is deploying the server itself: taking a newly delivered machine, configuring the operating system, security, storage and runtimes, and making it ready to carry a service. The second is deploying applications to it, again and again: copying a new release, migrating data, switching traffic and confirming it works. The first happens once per machine; the second may happen many times a day. Both get much easier when they are written down as code instead of done by hand.
The step before deployment, getting the hardware and OS image in place, is called provisioning; see Server provisioning.
What are the steps from a new machine to a live service?
- First login and access. Log in with the credentials from the panel, create a personal admin account with an SSH key and turn off password logins (Set up passwordless SSH).
- Updates and basics. Patch the system, set the host name and time zone, enable automatic security updates.
- Firewall. Default deny inbound, open only what the service needs (iptables basics).
- Storage. Our machines arrive with the OS on the first drive and the other drives unconfigured. Build the mirror or RAID you want with mdadm or ZFS, format and mount (Format a disk on Linux).
- Runtime and services. Install the web server, language runtime, database or container engine.
- Application. Deploy the first release, load data, configure secrets.
- Monitoring and backups. External uptime checks, resource alerts, scheduled backups to another machine.
- Cutover. Point DNS at the machine's IPv4 address and watch logs.
Which release strategies exist?
| Strategy | How it works | Needs | Downtime |
|---|---|---|---|
| In place | Stop, replace files, start | One machine | Seconds to minutes |
| Symlink switch | Upload release to a new folder, switch a current link, reload | One machine | Near zero |
| Rolling | Update servers behind a load balancer one by one | Two or more app servers | None |
| Blue-green | Run old and new side by side, switch traffic at once | Double capacity during the switch | None, instant rollback |
| Canary | Send a small share of traffic to the new release first | A load balancer with weights | None |
On a single budget machine, the symlink switch gives most of the benefit for no extra hardware: keep the last few releases in /srv/app/releases/, point /srv/app/current at the active one, and roll back by switching the link back. Blue-green on one box works with containers: start the new version on a second port, test it, then switch the reverse proxy.
Which tools make deployment repeatable?
- Configuration management: Ansible, Salt or Puppet describe how a server should look and apply it. Ansible needs only SSH on the target, which suits fresh dedicated machines.
- Cloud-init style scripts: a shell script kept in git that rebuilds a server from a clean image is a perfectly good start.
- Containers: Docker Compose files pin exactly what runs; Docker hosts covers that setup.
- CI/CD pipelines: GitLab CI, GitHub Actions runners, Jenkins or Woodpecker build, test and push releases over SSH or to a registry.
Whatever the tool, the test is simple: if the machine had to be reinstalled from the panel today, could you rebuild it from your scripts and backups in an hour?
How do I deploy database changes safely?
Make schema changes backward compatible: add columns before code uses them, stop using old columns before removing them. That way old and new releases both run against the same database during a switch, and a rollback does not require undoing a migration. Take a backup immediately before any migration that rewrites data.
What is a good deployment setup on a budget?
One production machine, one smaller staging machine on the same OS image, configuration in git, a deploy script that uses the symlink method, and backups to a box in another city. With every model available in all six cities at the same price, that layout might be S3 for production and S1 for staging. As traffic grows, add a second production node and switch to rolling deploys behind a load balancer; High availability shows the next step.
Machines for Production and Staging Pairs
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S3 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $80.38 | $80.38 (1 month) |
| S6 | Intel Xeon E-2288G | 8 / 16 | 64 GB DDR4 | 2x 1 TB NVMe | 2x 10 Gbps | $89.92 | $89.92 (1 month) |
| D1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 25 Gbps | $202.94 | $202.94 (1 month) |
Keep Reading
Server provisioning
How a physical server goes from an order to a running OS you can log into, and how provisioning differs for bare metal, VMs and containers.
OpenProduction server
The machine that serves real users and real data, how it differs from development and staging, and the habits that keep it stable.
OpenDocker hosts
One box, many Compose stacks: a reverse proxy on ports 80 and 443 routes every container by hostname.
OpenSet up passwordless SSH
Go from a root password to key-only access in one careful pass: user, key, agent, then switch off every password method on the server.
OpenFAQ
Quick Answers
Provisioning gets the hardware and operating system ready. Deployment configures services and ships application releases onto it.
A release method where users see no interruption, such as a symlink switch with a graceful reload, or rolling and blue-green deploys.
Yes, by running the new version on a second port or container, testing it, then switching the reverse proxy to it.
A version-controlled shell script or Ansible playbook. Both work over SSH and need nothing else installed on the target.
No. The OS is installed and the remaining drives are left for you to set up as a mirror, RAID or ZFS pool.