run_command
Run a local development server.
def run_command(
info: ScriptInfo,
host: str = 127.0.0.1,
port: int = 5000,
reload: bool = None,
debugger: bool = None,
with_threads: bool = True,
cert: ssl.SSLContext | tuple[str, str | None] | t.Literal["adhoc"] | None,
extra_files: list[str] | None = None,
exclude_patterns: list[str] | None = 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. The reloader and debugger are enabled by default with the '--debug' option.
Parameters
| Name | Type | Description |
|---|---|---|
| info | ScriptInfo | The script information object containing details about the application. |
| host | str = 127.0.0.1 | The interface to bind the development server to. |
| port | int = 5000 | The port to bind the development server to. |
| reload | bool = None | Enable or disable the reloader. By default, the reloader is active if debug is enabled. |
| debugger | bool = None | Enable or disable the debugger. By default, the debugger is active if debug is enabled. |
| with_threads | bool = True | Enable or disable multithreading for the development server. |
| cert | `ssl.SSLContext | tuple[str, str |
| extra_files | `list[str] | None` = None |
| exclude_patterns | `list[str] | None` = None |
Returns
| Type | Description |
|---|---|
None |