From e94fa01aa826c2be9503129579bbcc971023de5f Mon Sep 17 00:00:00 2001 From: Guillaume Hivert Date: Sun, 1 Dec 2024 23:37:12 +0100 Subject: [PATCH] Use any host listening --- apps/backend/src/backend.gleam | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/backend.gleam b/apps/backend/src/backend.gleam index 03f82a4..4f766b0 100644 --- a/apps/backend/src/backend.gleam +++ b/apps/backend/src/backend.gleam @@ -42,9 +42,10 @@ fn start_http_server(ctx) { let secret_key_base = context.get_secret_key_base() router.handle_request(_, ctx) |> wisp_mist.handler(secret_key_base) - |> mist.new() + |> mist.new + |> mist.bind("0.0.0.0") |> mist.port(port) - |> mist.start_http() + |> mist.start_http_server } fn start_periodic_workers(ctx) {