Skip to content

Commit

Permalink
Use any host listening
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Dec 1, 2024
1 parent 6a9b62d commit e94fa01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/backend/src/backend.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e94fa01

Please sign in to comment.