Skip to content

Commit 494c205

Browse files
committed
Improve comments
1 parent ad3d9ea commit 494c205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/kamal/cli/app.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ def boot
1414
end
1515
end
1616

17+
#  Primary hosts and roles are returned first, so they can open the barrier
1718
barrier = Kamal::Cli::Healthcheck::Barrier.new if KAMAL.roles.many?
1819

1920
on(KAMAL.hosts, **KAMAL.boot_strategy) do |host|
20-
# Ensure primary role is booted first to allow the web barrier to be opened
2121
KAMAL.roles_on(host).each do |role|
2222
Kamal::Cli::App::Boot.new(host, role, self, version, barrier).run
2323
end
2424
end
2525

26+
#  Tag once the app booted on all hosts
2627
on(KAMAL.hosts) do |host|
2728
execute *KAMAL.auditor.record("Tagging #{KAMAL.config.absolute_image} as the latest image"), verbosity: :debug
2829
execute *KAMAL.app.tag_latest_image

0 commit comments

Comments
 (0)