Closed jeromedalbert closed 2 days ago
kamal app logs -f doesn't work if the primary role is not "web".
kamal app logs -f
Steps to repro:
primary_role: worker
config/deploy.yml
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.
Do not default kamal app logs -f to use the hardcoded "web" role; instead use the primary role, which can be different from "web".
Problem
kamal app logs -f
doesn't work if the primary role is not "web".Steps to repro:
primary_role: worker
inconfig/deploy.yml
kamal app logs -f
Actual behavior:
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".