Skip to content

Commit

Permalink
stops when deploy detects status suspended
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Jun 29, 2020
1 parent 3077670 commit 1cd74dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func runDeploy(commandContext *cmdctx.CmdContext) error {
return err
}

if appcheck.Status == "dead" {
return fmt.Errorf("app %s is currently paused - resume it with flyctl apps resume", commandContext.AppName)
if appcheck.Status == "suspended" {
return fmt.Errorf("app %s is currently suspended - resume it with flyctl apps resume", commandContext.AppName)
}

var strategy = docker.DefaultDeploymentStrategy
Expand Down

0 comments on commit 1cd74dd

Please sign in to comment.