run_command
Run a local development server.
This server is for development purposes only. It does not provide
the stability, security, or performance of production WSGI servers.
The reloader and debugger are enabled by default with the '--debug'
option.
def run_command(
info: ScriptInfo,
host: str,
port: int,
reload: bool,
debugger: bool,
with_threads: bool,
cert: ssl.SSLContext | tuple[str, str | None] | t.Literal["adhoc"] | None,
extra_files: list[str] | None,
exclude_patterns: list[str] | None
) - > None
Run a local development server. This server is for development purposes only. It does not provide the stability, security, or performance of production WSGI servers.
Parameters
| Name | Type | Description |
|---|---|---|
| info | ScriptInfo | An object containing the application factory or instance and related configuration metadata. |
| host | str | The network interface address to bind the server to. |
| port | int | The network port to listen on for incoming requests. |
| reload | bool | Controls whether the server should automatically restart when Python files are modified. |
| debugger | bool | Controls whether the interactive Werkzeug debugger is enabled for unhandled exceptions. |
| with_threads | bool | Determines if the server should handle each request in a separate thread. |
| cert | `ssl.SSLContext | tuple[str, str |
| extra_files | `list[str] | None` |
| exclude_patterns | `list[str] | None` |
Returns
| Type | Description |
|---|---|
None | This function does not return a value; it starts a blocking server process. |