redeploy
Rebuild an app from its source and roll it out.
lly redeploy [SLUG|ID] [--ref <REF>]Fetches the source of the app, builds it and rolls out the new deployment. Use it to apply new code, changed variables and changed ports.
lly redeploy copperfox
lly redeploy copperfox --ref v1.4.2Without --ref, the latest commit of the source branch is built. --ref builds a branch, tag or commit.
lly follows the build like deploy and prints the same summary. If the build fails, lly attach --build <slug> shows the build log.
Repositories fetched through the GitHub connection can always be redeployed. A private repository added by URL with a token cannot be redeployed, because the token is not stored.
Options
| Option | Description |
|---|---|
--ref <REF> | Branch, tag or commit |
restart, redeploy or deploy
| Command | Rebuilds | Applies new code | Applies new variables |
|---|---|---|---|
restart | No | No | No |
redeploy | One app | Yes | Yes |
deploy | All apps of the source | Yes | Yes |
Exit codes
| Code | Cause |
|---|---|
5 | Another command or build is running |
7 | Build or rollout failed |
JSON output
The build summary: {"project_id", "flow", "apps": [{"app", "phase", "url"}]}.
See also
- Redeploy and roll back: the same task step by step