瀏覽代碼

update launch message (#3453)

* update launch message

* update for nit

* address changes
Thomas Brandého 11 月之前
父節點
當前提交
bdc0defa4a
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      reflex/utils/exec.py

+ 8 - 1
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...")