Glossary

Server Deployment

Server deployment is the process of putting a machine and the software on it into service, and of shipping each new release to it afterward without breaking what users rely on.

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?

  1. 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).
  2. Updates and basics. Patch the system, set the host name and time zone, enable automatic security updates.
  3. Firewall. Default deny inbound, open only what the service needs (iptables basics).
  4. 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).
  5. Runtime and services. Install the web server, language runtime, database or container engine.
  6. Application. Deploy the first release, load data, configure secrets.
  7. Monitoring and backups. External uptime checks, resource alerts, scheduled backups to another machine.
  8. Cutover. Point DNS at the machine's IPv4 address and watch logs.

Which release strategies exist?

StrategyHow it worksNeedsDowntime
In placeStop, replace files, startOne machineSeconds to minutes
Symlink switchUpload release to a new folder, switch a current link, reloadOne machineNear zero
RollingUpdate servers behind a load balancer one by oneTwo or more app serversNone
Blue-greenRun old and new side by side, switch traffic at onceDouble capacity during the switchNone, instant rollback
CanarySend a small share of traffic to the new release firstA load balancer with weightsNone

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

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)
S3Intel Xeon E-2356G6 / 1264 GB DDR42x 1 TB NVMe2x 10 Gbps$80.38$80.38 (1 month)
S6Intel Xeon E-2288G8 / 1664 GB DDR42x 1 TB NVMe2x 10 Gbps$89.92$89.92 (1 month)
D12x Intel Xeon Gold 5315Y16 / 32128 GB DDR42x 1 TB NVMe2x 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.

Open

Production server

The machine that serves real users and real data, how it differs from development and staging, and the habits that keep it stable.

Open

Docker hosts

One box, many Compose stacks: a reverse proxy on ports 80 and 443 routes every container by hostname.

Open

Set 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.

Open

FAQ

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.