There is a question every website owner should be able to answer and very few can: is the code running on my server exactly the code my team approved? On a traditionally managed server the honest answer is "probably". Files can be edited in place, a quick fix can be applied by hand and forgotten, an upload folder can hold something that should not be there, and nobody can say for certain what changed when. This article is about how we make the answer a definite yes: every site we run is deployed as an immutable release, a complete and unchangeable snapshot, and nothing on the server can be quietly modified.
What a release is
A release is a specific version of the site's code, identified by a commit in the repository, built into a complete set of files and packaged with the container images it runs on. Building a release means taking that commit, installing its exact dependencies from the lock files, compiling the frontend components, and producing a directory that contains everything the site needs to run. That directory is then placed on the server alongside previous releases, and the site is switched to it in a single atomic step.
Three properties follow. The release is complete: it does not depend on anything installed by hand. It is reproducible: building the same commit again produces the same result. And it is immutable: once built and deployed, it is never edited. A change means a new commit, a new build and a new release.
Read-only, by enforcement
Immutability is not just a policy. The release directory is mounted into the running container as read-only, so the application itself cannot write to its own code even if something inside it tried. The only writable locations are the ones Drupal legitimately needs, the uploaded files directory and a temporary directory, and those are separate from the code and cannot be executed as code by the web server.
This closes a category of problem that has historically been among the most damaging for websites: code modified in place after deployment. A backdoor inserted into a file, a script dropped into an upload folder, a template edited to inject something. On a read-only release, the first two cannot happen and the third would be visible immediately, because the release on disk can be compared, byte for byte, with what the build produced.
Every release is kept
Because releases are separate directories, the previous ones remain on the server after a new one goes live. This is what makes rollback a single step: switching the site back to the previous release takes seconds and needs no rebuild. It is also what makes the deployment history in the client portal meaningful. Each entry corresponds to a real, still-present release, and the question "what was live on this date?" has an exact answer.
Old releases are pruned on a schedule, keeping the most recent several, so the history is deep enough to be useful without growing forever.
The deploy itself is atomic
Switching from one release to the next happens by changing a single pointer, a symbolic link, from the old directory to the new one. There is no moment when the site is half one version and half another, and no window during which files are being copied over a running application. Visitors on the old release finish their requests on it; new requests go to the new one. This is why our deployments do not need a maintenance page, and why planned work does not appear in the uptime figures: there is no downtime to exclude.
The path from commit to release is controlled
Immutability on the server is only as trustworthy as the path that produces the release. Code reaches the repository through reviewed changes. A release is built from a specific commit by an automated pipeline, in a clean environment, with dependencies fetched from lock files that pin exact versions and verify their integrity. The build runs the site's tests and static analysis. Where a release is triggered by a tag, the deployment waits for the pipeline to pass and refuses to proceed if it does not. Nobody builds a release on their laptop and uploads it, and nobody edits a file on the server because it was faster. The only way for code to reach production is through the pipeline, which means the only code in production is code that passed it.
Configuration travels the same way
Drupal stores much of what makes a site behave the way it does, content types, fields, roles, views, settings, as configuration, and we treat configuration as part of the release. It is exported from the development environment, committed alongside the code, reviewed, and imported during deployment. The configuration on the live site is therefore also a known quantity: it matches the release, and a change made directly on the live site would be overwritten by the next deploy. This makes who changed what answerable for configuration as well as code, and it means that a site can be rebuilt from its repository and a database backup with nothing lost.
What this gives you
The practical outcomes are what matter. You can know, definitely, what is running. You can roll back in seconds. You can prove to a customer's security team that code cannot be modified in place. You can rebuild the site from source if you ever need to, which is the foundation of the handover packages we prepare for every client. And you gain a quiet property that is hard to appreciate until you have lived without it: the server stops being a place where mysteries accumulate.
If your site is deployed by copying files or editing them in place, moving to immutable releases is one of the most valuable changes available to it, and it does not require a rebuild. We can show you what the transition involves.
