Skip to content

Commit

Permalink
Fix metrics endpoint port parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Aug 16, 2024
1 parent 56eb0f1 commit 5ffb0c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ end
############################

metrics_endpoint_port =
(System.get_env("METRICS_ENDPOINT_PORT") || "9568")
|> String.to_integer()
if System.get_env("METRICS_ENDPOINT_PORT") in [nil, ""] do
9568
else
System.get_env("METRICS_ENDPOINT_PORT") |> String.to_integer()
end

config :arena, :gateway_url, System.get_env("GATEWAY_URL") || "http://localhost:4001"
config :arena, :metrics_endpoint_port, metrics_endpoint_port
Expand Down

0 comments on commit 5ffb0c7

Please sign in to comment.