fix: do not open browser on backend_only mode

This commit is contained in:
Nicolò Boschi 2024-06-19 14:09:20 +02:00 committed by Gabriel Luiz Freitas Almeida
commit 5a41224560

View file

@ -167,7 +167,7 @@ def run(
else:
# Run using gunicorn on Linux
process = run_on_mac_or_linux(host, port, log_level, options, app)
if open_browser:
if open_browser and not backend_only:
click.launch(f"http://{host}:{port}")
if process:
process.join()