Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow logs on primary role by default #1024

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

jeromedalbert
Copy link
Contributor

@jeromedalbert jeromedalbert commented Oct 1, 2024

Problem

kamal app logs -f doesn't work if the primary role is not "web".

Steps to repro:

  • have primary_role: worker in config/deploy.yml
  • run kamal app logs -f

Actual behavior:

  INFO Following logs on [REDACTED_IP]...
  ERROR (ArgumentError): No --roles match for web

Expected behavior: kamal app logs -f should not error out.

Solution

Do not default kamal app logs -f to use the hardcoded "web" role; instead use the primary role, which can be different from "web".

Do not default `kamal app logs -f` to use the hardcoded “web” role;
instead use the primary role, which can be different from “web”.
@djmb djmb merged commit aa15fa5 into basecamp:main Oct 2, 2024
6 checks passed
@jeromedalbert jeromedalbert deleted the follow-primary-role branch October 2, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants