Skip to content

Commit

Permalink
update host
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrochar committed Mar 9, 2024
1 parent 5cc8832 commit 2512701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blitz/cli/commands/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))],
Expand All @@ -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")

0 comments on commit 2512701

Please sign in to comment.