From bdc0defa4a823b7b39fd8f26b5d5984fc0e8589d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Thu, 13 Jun 2024 20:03:42 +0200 Subject: [PATCH] update launch message (#3453) * update launch message * update for nit * address changes --- reflex/utils/exec.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reflex/utils/exec.py b/reflex/utils/exec.py index 3af5b8034..dd99d6e8d 100644 --- a/reflex/utils/exec.py +++ b/reflex/utils/exec.py @@ -108,7 +108,14 @@ def run_process_and_launch_url(run_command: list[str], backend_present=True): url = match.group(1) if get_config().frontend_path != "": url = urljoin(url, get_config().frontend_path) - console.print(f"App running at: [bold green]{url}") + + console.print( + f"App running at: [bold green]{url}[/bold green]{' (Frontend-only mode)' if not backend_present else ''}" + ) + if backend_present: + console.print( + f"Backend running at: [bold green]http://0.0.0.0:{get_config().backend_port}[/bold green]" + ) first_run = False else: console.print("New packages detected: Updating app...")