Promote a deployment
3c9e41a0. The new deployment:
- runs with the project’s current runtime env vars, so it also applies env var changes without a build;
- stays in the environment of
3c9e41a0: production stays production, and a preview replaces the same preview; - records where it came from, shown as “promoted from 3c9e41a0” in the CLI and the panel;
- goes through the usual statuses and ends as
READY,PARTIALorFAILED.
READY or PARTIAL deployment. With --rebuild (below), any finished one works, also a FAILED or CANCELLED one. Either way its files must still be kept: the last 10 finished deployments per project and environment, plus everything live. For older ones the platform answers “The files of deployment … are no longer kept”; deploy again instead.
The CLI waits for the new deployment and exits like atoll deploy; --no-wait returns right away. You need the Developer role.
Promote a preview to production
A preview stays in the preview environment unless you say otherwise:preview build values keeps them when promoted. If your web app reads an API URL at build time, rebuild instead (next section).
Rebuild
--rebuild builds the kept source of the deployment again, with the current build env vars of the environment it goes to:
Roll back
atoll rollback goes back to the previous good production build. It promotes the newest READY production deployment before the current one that runs different build outputs, so promotions of the current build are passed over. It does not rebuild. It uses the project in the current directory; pass --project (or -p) to name another one:
atoll list and promote it: