Skip to content

Commit

Permalink
Merge pull request #1024 from jeromedalbert/follow-primary-role
Browse files Browse the repository at this point in the history
Follow logs on primary role by default
  • Loading branch information
djmb authored Oct 2, 2024
2 parents 276b469 + f47fd13 commit aa15fa5
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 aa15fa5

Please sign in to comment.