update launch message ()

* update launch message

* update for nit

* address changes
This commit is contained in:
Thomas Brandého 2024-06-13 20:03:42 +02:00 committed by GitHub
parent b15cee4f10
commit bdc0defa4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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