Before you start
- The release you want to deploy must have built successfully. See Create a release.
- The deployment must be installed, its Deployz connector must be Online, and no other operation can be running on it. See When an update is unavailable.
- If the release adds infrastructure, such as a database, a cache, or a new worker, it can’t go to an existing deployment. See Changes that need a new deployment.
Deploy the update
Who: you (the vendor), in the Deployz dashboard.- In Deployments, open the customer’s deployment.
- Select Deploy update. When a newer release is ready, the button reads Deploy update to
<version>. After a failed update, it reads Retry update and opens the same release picker, so you choose the release again. - In Release to deploy, select the release (the field reads Select a release until you choose). The list shows releases that built successfully, newest first, except the one already running.
- Check the summary. Current release and New release show the two versions. If the application now needs infrastructure this deployment doesn’t have, the dialog shows This release cannot be deployed here and Deploy update stays disabled. See Changes that need a new deployment.
- Select Deploy update.
What happens during an update
- The database migration runs first. If your application has a separate migration step, Deployz runs it after the infrastructure and database are ready and before any service changes. The migration must finish with exit code
0. Retry update starts a new update, so a migration that succeeded in a failed attempt runs again. See When a migration runs again. - Each service moves to the new release. Your current release keeps serving until the new one is running.
- The connector verifies the new release. The update succeeds only when the connector confirms that the new release is running and healthy. See Deployment status and health.
An update moves forward only after each step succeeds. A failure leaves the previous release serving.
If the update fails
A failed update never takes down the release that was running. The deployment returns to its previous status, and:- The Deployments list shows Update failed.
- The detail page shows Update failed with a line such as Release
<version>is still live and unaffected. - If the migration failed, no service was changed, and the previous release keeps serving.
When an update is unavailable
When Deploy update isn’t available, the detail page shows the reason under the action buttons. The same rules apply to Rollback, Restart, and Configuration.
If you start an update and Deployz refuses it, the dialog shows why. For example, a release whose build is no longer available can’t be deployed. Create a new release instead.
Changes that need a new deployment
A deployment keeps the infrastructure it was created with. An update can’t add or change infrastructure, so Deployz refuses an update when the application now needs any of these and the deployment doesn’t have it:- A database, or a different database engine
- A cache
- A different set of processes, such as workers
- A different set of queues (Preview)
- A different set of scheduled jobs (Preview)
If you add a migration command to an application whose deployment was created without a separate migration step, Deployz refuses the update. Choose No separate migration for the application, or create a new deployment.
