Merge pull request #1024 from jeromedalbert/follow-primary-role

Follow logs on primary role by default
This commit is contained in:
Donal McBreen
2024-10-02 09:29:16 +01:00
committed by GitHub

View File

@@ -203,7 +203,7 @@ class Kamal::Cli::App < Kamal::Cli::Base
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)