From 5be6fa3b4e05fb2ba14eb0a991956c417d0aa359 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 3 Apr 2024 16:24:25 +0100 Subject: [PATCH] Improve comments --- lib/kamal/cli/app.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kamal/cli/app.rb b/lib/kamal/cli/app.rb index 390f6a7d..14cf54ad 100644 --- a/lib/kamal/cli/app.rb +++ b/lib/kamal/cli/app.rb @@ -14,15 +14,16 @@ class Kamal::Cli::App < Kamal::Cli::Base end end + #  Primary hosts and roles are returned first, so they can open the barrier barrier = Kamal::Cli::Healthcheck::Barrier.new if KAMAL.roles.many? on(KAMAL.hosts, **KAMAL.boot_strategy) do |host| - # Ensure primary role is booted first to allow the web barrier to be opened KAMAL.roles_on(host).each do |role| Kamal::Cli::App::Boot.new(host, role, self, version, barrier).run end end + #  Tag once the app booted on all hosts on(KAMAL.hosts) do |host| execute *KAMAL.auditor.record("Tagging #{KAMAL.config.absolute_image} as the latest image"), verbosity: :debug execute *KAMAL.app.tag_latest_image