From 0cd7242bb28f83f4d3670b75d259d08c2c0358d9 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Wed, 20 Sep 2023 19:31:06 -0700 Subject: [PATCH] exec: print the URL, not the address the server binds to (#1846) --- reflex/utils/exec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/utils/exec.py b/reflex/utils/exec.py index 963708e9c..5fb1aa072 100644 --- a/reflex/utils/exec.py +++ b/reflex/utils/exec.py @@ -85,10 +85,10 @@ def run_process_and_launch_url(run_command: list[str]): ) if process.stdout: for line in processes.stream_logs("Starting frontend", process): - match = re.search("ready started server on ([0-9.:]+)", line) + match = re.search("ready started server on ([0-9.:]+), url: (.*)", line) if match: if first_run: - url = f"http://{match.group(1)}" + url = match.group(2) if get_config().frontend_path != "": url = urljoin(url, get_config().frontend_path) console.print(f"App running at: [bold green]{url}")