Deployment History & Rollbacks
Every deploy is recorded with its commit; rolling back is usually instant, no rebuild required.
Every deploy DeployOS runs is recorded, which commit, which image, when, and whether it succeeded, visible on the app's Deploy tab and the fleet-wide Deployments page.
Rolling back
Pick any previous deployment from the app's history and click Rollback. What happens next depends on how that deployment was built:
- Instant rollback: if the deployment was built via Railpack and its image is still one of the last 3 kept on the server, DeployOS just re-starts that cached image. No rebuild, no waiting, this is the common case.
- Rebuild rollback: for Dockerfile/Compose-based apps (or a Railpack build old enough to have been pruned), DeployOS checks out that commit and redeploys from source, same as a normal deploy.
The Deployments page with past deploys and their results
Either way, the same soft health check that a normal deploy gets runs after a rollback too.
What gets recorded per deployment
- The exact commit hash and message that was deployed.
- Which environment variable keys were present (not their values).
- The built image tag, when applicable.
Reading the fleet-wide Deployments page
Beyond a single app's history, Deployments aggregates recent deploys across every app and server, useful for spotting "did anything ship in the last hour" at a glance, and for bulk-moving apps to a different server (see Migrating Apps Between Servers).
Diffing a deployment
Click Diff on any historical deployment to compare it against what's live right now, the built image (or commit) and which environment variable keys changed, added, or were removed. Values themselves are never shown in a diff, even for your own deployments, since the whole point of environment variables is that they don't get printed places they don't need to be.
Useful for answering "what actually changed between the version that worked and the one that doesn't" without digging through commit history by hand.
Rules a deploy must pass
On an app's Deploy tab, Rules a deploy must pass lets you make parts of the go-live check mandatory. Turn a rule on and every deploy of that app is checked against it first, on the code it has just fetched. If the rule does not pass, the deploy stops before anything is built and your live app is left exactly as it was. The deploy log names the rule and what it found.
| Rule | Stops a deploy when |
|---|---|
| No live keys or passwords in the code | A provider key or private key is written into the source |
| No .env file committed | The repository tracks a .env file |
| Every setting the code reads is set | The code reads a setting this app does not have |
| Debug mode is off | A debug or development setting is switched on |
| Databases are backed up | One of the app's databases has no backup schedule |
| Error tracking is installed | No error-tracking library is found in the code |
All rules are off by default. They apply to every way a deploy can start: the Deploy button, deploy on push while the app is open, and a deploy started by an AI assistant. Deploys that run on the server through GitHub Actions do not pass through the desktop app, so they are not checked by these rules.
The Go-live check sits under the rules on the same tab. Run it any time to see how the app does on every check, including the two that are not rules: HTTPS on each domain and private files readable from the web. Those test the site that is already live, so they cannot judge a deploy that has not happened yet.
The app's Overview tab lists its deployment history five at a time, newest first, with what changed, when, how long it took and whether that build is live now.
Rules also apply to promotions
When you promote a release from staging, production's rules are checked first. The code rules read the exact code staging is running, judged against production's settings; the others read production itself. If a rule does not pass, nothing is promoted.
Two things do not pass through these rules: a rollback, so that undoing a bad release is never blocked, and a deploy started by GitHub Actions, which runs on GitHub and not in DeployOS.
Deploy freeze
In Settings, Deploy freeze sets hours each week in which nothing deploys, for example Friday 17:00 to Monday 08:00. It stops the Deploy button, auto-deploy, promotions and the AI assistant, and says when the freeze ends. Rollbacks always work. Times are your computer's local time.