impreza_redeploy_deployment
Rebuild a custom deployment in place from its current source, re-pulling the image or git ref, and swap the container with near-zero downtime while preserving domain and host port. Optionally update environment variables without teardown.
Instructions
Rebuild a CUSTOM deployment in place from its current source — re-pull the image, re-clone the watched git ref at its new HEAD, or rebuild — and swap the container with near-zero downtime. Reuses the same deployment, so the domain, host port, and URL never change. This is the in-place way to ship a new build of a running custom app the customer changed — PREFER it over uninstall + recreate. Optional vars are merged into the stored environment before the rebuild (rotate a secret / add a var without a teardown); system vars (DEPLOYMENT_ID, DOMAIN_URL, HOST_PORT, ...) are preserved. The source itself is not changed here — to change the image ref or git URL, recreate under the same name (the *.imprezaapps.com domain is preserved either way). Custom deployments only; returns the deployment flipped to updating — poll impreza_list_deployments for running/failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | No | Optional env vars merged into the deployment before the rebuild. System vars are preserved. | |
| deployment_id | Yes | The dpl_... id of the custom deployment to rebuild. |