From ad6a5782d0ddbca8ee745252e29d7a6f8387d08f Mon Sep 17 00:00:00 2001 From: pbrochar <36422268+pbrochar@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:33:18 +0100 Subject: [PATCH] update host (#28) --- blitz/cli/commands/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blitz/cli/commands/start.py b/blitz/cli/commands/start.py index e9e95c1..a487448 100644 --- a/blitz/cli/commands/start.py +++ b/blitz/cli/commands/start.py @@ -68,7 +68,7 @@ def start_blitz( server_config = uvicorn.Config( "blitz.api:create_blitz_api", factory=True, - host="localhost", + host="0.0.0.0", port=port, reload=True, reload_includes=[str(blitz_app.file.path.relative_to(Path.cwd()))], @@ -80,4 +80,4 @@ def start_blitz( ChangeReload(server_config, target=server.run, sockets=[server_config.bind_socket()]).run() else: blitz_api = create_blitz_api(blitz_app, enable_config_route=config_route, admin=admin) - uvicorn.run(blitz_api, host="localhost", port=port, log_config=None, log_level="warning") + uvicorn.run(blitz_api, host="0.0.0.0", port=port, log_config=None, log_level="warning")