MCPcopy Index your code
hub / github.com/reflex-dev/reflex / notify_backend

Function notify_backend

reflex/utils/exec.py:204–214  ·  view source on GitHub ↗

Output a string notifying where the backend is running. Args: host: The backend host. If not provided, falls back to the config value.

(host: str | None = None)

Source from the content-addressed store, hash-verified

202
203
204def notify_backend(host: str | None = None):
205 """Output a string notifying where the backend is running.
206
207 Args:
208 host: The backend host. If not provided, falls back to the config value.
209 """
210 config = get_config()
211 effective_host = host if host is not None else config.backend_host
212 console.print(
213 f"Backend running at: [bold green]http://{effective_host}:{config.backend_port}[/bold green]"
214 )
215
216
217# run_process_and_launch_url is assumed to be used

Callers 2

run_backendFunction · 0.85

Calls 1

get_configFunction · 0.90

Tested by

no test coverage detected