Deployment
Definition
A deployment is one publish: a specific set of files moved into the place a web server reads from, and made live at a known address. For a static site that means copying a build artifact — the finished HTML, CSS, JavaScript and images — to a host, after which requests for that address return the new files instead of the old ones. Every deployment is a version in its own right. The tenth deployment of a site is a distinct snapshot from the ninth, even if only one word of copy changed. Hosts differ in how a deployment starts: some watch a Git branch, some accept an upload over a REST API, some let you drag a folder into a browser window. What does not differ is the outcome — before it, visitors see version nine; after it, version ten.
Why It Matters
Deployment is where most site outages are born. A half-copied upload can leave an HTML file referencing a stylesheet that has not arrived yet, so for thirty seconds the site renders as unstyled black text on white. Deployments that cannot be undone are worse: if version ten breaks the pricing page, the only cure is to build and publish version eleven, which may take the ten minutes you do not have. A host that keeps every publish as its own stored snapshot turns those ten minutes into an instant rollback. The habit worth forming is to treat a publish as a thing you can name, inspect and reverse, rather than an action that simply happens to the site.
How It Works
The mechanics vary by host, but the shape is constant. Files are transferred — over HTTPS to an API, over Git, or as a zip through a browser — and stored as a numbered release. The host then flips a pointer: the route for your address stops resolving to release nine and starts resolving to release ten. Caches are told about the change, either by purging the edge or by relying on content-hashed filenames, which make new assets into new URLs that no cache has seen. Only at that point does a visitor's request come back with the new markup. Because the flip is the last step rather than the first, a transfer that fails halfway leaves the previous release serving as though nothing had been attempted.
Real-World Example
A small charity publishes its annual report as a folder of eight static pages. The first publish goes live at 'oakfield-report.99helpers.site' at 10:02. At 10:40 someone spots that the donation total on page three is wrong. They correct the number locally, drag the folder in again, and the second deployment is live before 10:42. Anyone who loaded the site at 10:30 saw the wrong figure; everyone after 10:42 sees the right one, and the first publish is still listed should the trustees ask what was up there this morning.
Common Mistakes
- ✕Uploading only the files that changed — the site ends up with markup pointing at assets that were removed two publishes ago
- ✕Publishing straight to the live address with no way back — the fix for a bad release becomes another release, under pressure
- ✕Assuming a publish is finished the moment the upload bar fills — caches may still be serving the old files for minutes afterwards
Related Terms
Build Artifact
A build artifact is the set of files a build produces — the finished HTML, CSS, JavaScript and images that actually get served. It is what you publish, not the source you edit.
Atomic Deployment
An atomic deployment switches a site from the old version to the new one in a single step, so visitors never see a mixture of the two. Either every file is new, or every file is still the old one.
Continuous Deployment
Continuous deployment means every accepted change is published automatically, with nobody pressing a publish button. A change that passes its checks goes live on its own.
Static Hosting
Static hosting is a service that stores a folder of finished web files and serves them over HTTP, without running any application code of yours. You upload the folder; the host answers requests for the files in it.
Instant Rollback
Instant rollback is returning a published file or site to an earlier version in a single action, with the change live straight away. Nothing is rebuilt and nothing is re-uploaded, because the earlier copy is already stored.
Put a file online in seconds
Drop in a document, an image, a page or a whole static website and share the link — free, with no build step and no server to set up.
Host a file free →