fix: mrsk deploy fails when traefik config is empty
This commit is contained in:
@@ -46,7 +46,8 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
|
||||
end
|
||||
|
||||
def port
|
||||
"#{config.raw_config.traefik.fetch("host_port", "80")}:80"
|
||||
traefik_port = config.raw_config.dig(:traefik, "host_port") || 80
|
||||
"#{traefik_port}:80"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user