Support a dynamic primary_web_role instead of assuming it's 'web'.
This allows for more meaningful naming in roles. The only caution here is that we don't support the renaming of roles, so any migration is left to the user.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Kamal::Commands::Healthcheck < Kamal::Commands::Base
|
||||
|
||||
def run
|
||||
web = config.role(:web)
|
||||
web = config.role(config.primary_web_role)
|
||||
|
||||
docker :run,
|
||||
"--detach",
|
||||
|
||||
Reference in New Issue
Block a user