Skip to content

Commit

Permalink
corrected nil port parse (#459)
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>

Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend authored Sep 1, 2022
1 parent a042407 commit 3893cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasmcloud_host/lib/wasmcloud_host_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ defmodule WasmcloudHostWeb.Endpoint do

def init(_key, config) do
host = System.get_env("WASMCLOUD_DASHBOARD_HOST")
port = System.get_env("WASMCLOUD_DASHBOARD_PORT") |> String.to_integer()
port = System.get_env("WASMCLOUD_DASHBOARD_PORT", "4000") |> String.to_integer()

case {host, port} do
{nil, nil} ->
Expand Down

0 comments on commit 3893cd9

Please sign in to comment.