exec: print the URL, not the address the server binds to (#1846)
This commit is contained in:
parent
ac8dfc5f91
commit
0cd7242bb2
@ -85,10 +85,10 @@ def run_process_and_launch_url(run_command: list[str]):
|
|||||||
)
|
)
|
||||||
if process.stdout:
|
if process.stdout:
|
||||||
for line in processes.stream_logs("Starting frontend", process):
|
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 match:
|
||||||
if first_run:
|
if first_run:
|
||||||
url = f"http://{match.group(1)}"
|
url = match.group(2)
|
||||||
if get_config().frontend_path != "":
|
if get_config().frontend_path != "":
|
||||||
url = urljoin(url, 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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user