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.2

Without --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

OptionDescription
--ref <REF>Branch, tag or commit

restart, redeploy or deploy

CommandRebuildsApplies new codeApplies new variables
restartNoNoNo
redeployOne appYesYes
deployAll apps of the sourceYesYes

Exit codes

CodeCause
5Another command or build is running
7Build or rollout failed

JSON output

The build summary: {"project_id", "flow", "apps": [{"app", "phase", "url"}]}.

See also

On this page