Traefik hosts can now be more than just web

This commit is contained in:
David Heinemeier Hansson
2023-01-20 13:38:57 +01:00
parent 2cb09be0cd
commit 8a32cc9c84
4 changed files with 21 additions and 9 deletions

View File

@@ -71,6 +71,10 @@ class Mrsk::Configuration
role(:web).hosts.first
end
def traefik_hosts
roles.select(&:running_traefik?).flat_map(&:hosts)
end
def version
@version ||= ENV["VERSION"] || `git rev-parse HEAD`.strip