Handle an undefined primary_web_role.

This commit is contained in:
Matthew Kent
2023-11-11 12:57:31 -08:00
parent 6898e8789e
commit a9cc7c73d2

View File

@@ -263,6 +263,10 @@ class Kamal::Configuration
end
end
unless role_names.include?(primary_web_role)
raise ArgumentError, "The primary_web_role #{primary_web_role} isn't defined"
end
unless traefik_role_names.include?(primary_web_role)
raise ArgumentError, "Role #{primary_web_role} needs to have traefik enabled"
end