Deployments and rollbacks
What happens during a deployment, production and preview, redeploys, cancels and rollbacks.
The steps of a deployment#
Every deployment goes through the same steps, shown live with their logs:
- Queued: waiting for a free builder (the plan sets how many builds run at once).
- Preparing: the source is fetched (a GitHub commit, a ZIP upload or a template).
- Building: an image is built from your code with the install and build commands.
- Deploying and Starting: the new version starts next to the one that is running.
- Health check: Cloudvea calls your app on the health check path and waits for an answer.
- Ready: traffic switches to the new version, with no downtime.
If a step fails, the deployment is Failed and the running version keeps serving: a broken build never takes your app offline. Read the log of the failed step to see why; see Troubleshooting.
Production and preview#
- Production deployments serve the project's public address and its domains.
- Preview deployments (from GitHub pull requests) build and run your code with the preview environment variables, without touching production. Use them to check a change before it is merged.
Redeploy, cancel and roll back#
- Redeploy builds the same source again with the current settings and variables, for example after changing an environment variable.
- Cancel stops a deployment that has not finished yet.
- Roll back makes an earlier successful production deployment live again. It reuses its image, so it is fast and uses no build minutes.
Who can deploy#
Owners, admins and developers can deploy, redeploy, cancel and roll back; viewers can read deployments and logs. See Teams and roles.