instance method
redeploy
Ruby on Rails 2.10.1
Since v1.9.3 Last seen in v2.11.0Signature
redeploy()
No documentation comment.
Source
# File lib/kamal/cli/main.rb, line 57
def redeploy
runtime = print_runtime do
invoke_options = deploy_options
if options[:skip_push]
say "Pull app image...", :magenta
invoke "kamal:cli:build:pull", [], invoke_options
else
say "Build and push app image...", :magenta
invoke "kamal:cli:build:deliver", [], invoke_options
end
with_lock do
run_hook "pre-deploy", secrets: true
say "Detect stale containers...", :magenta
invoke "kamal:cli:app:stale_containers", [], invoke_options.merge(stop: true)
invoke "kamal:cli:app:boot", [], invoke_options
end
end
run_hook "post-deploy", secrets: true, runtime: runtime.round.to_s
end
Defined in lib/kamal/cli/main.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Kamal::Cli::Main