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
|
end
|
||||||
|
|
||||||
def port
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Reference in New Issue
Block a user