exec: print the URL, not the address the server binds to (#1846)

This commit is contained in:
Masen Furer 2023-09-20 19:31:06 -07:00 committed by GitHub
parent ac8dfc5f91
commit 0cd7242bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")