Skip to content

Commit

Permalink
Follow logs on primary role by default
Browse files Browse the repository at this point in the history
Do not default `kamal app logs -f` to use the hardcoded “web” role;
instead use the primary role, which can be different from “web”.
  • Loading branch information
jeromedalbert committed Oct 1, 2024
1 parent cd12f95 commit f47fd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/cli/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def logs
run_locally do
info "Following logs on #{KAMAL.primary_host}..."

KAMAL.specific_roles ||= [ "web" ]
KAMAL.specific_roles ||= [ KAMAL.primary_role.name ]
role = KAMAL.roles_on(KAMAL.primary_host).first

app = KAMAL.app(role: role, host: host)
Expand Down

0 comments on commit f47fd13

Please sign in to comment.