Run a local development server.
(
info: ScriptInfo,
host: str,
port: int,
reload: bool,
keyfile: str,
certfile: str,
)
| 639 | ) |
| 640 | @pass_script_info |
| 641 | def run_command( |
| 642 | info: ScriptInfo, |
| 643 | host: str, |
| 644 | port: int, |
| 645 | reload: bool, |
| 646 | keyfile: str, |
| 647 | certfile: str, |
| 648 | ) -> None: |
| 649 | """Run a local development server.""" |
| 650 | app = info.load_app() |
| 651 | debug = get_debug_flag() |
| 652 | |
| 653 | if reload is None: |
| 654 | reload = debug |
| 655 | |
| 656 | app.run( |
| 657 | debug=debug, |
| 658 | host=host, |
| 659 | port=port, |
| 660 | certfile=certfile, |
| 661 | keyfile=keyfile, |
| 662 | use_reloader=reload, |
| 663 | ) |
| 664 | |
| 665 | |
| 666 | @click.command("shell", short_help="Run a shell in the app context.") |
nothing calls this directly
no test coverage detected
searching dependent graphs…