|
|
@ -746,9 +746,12 @@ def _validate_key(ctx, param, value): |
|
|
|
'loading is enabled if the reloader is disabled.') |
|
|
|
'loading is enabled if the reloader is disabled.') |
|
|
|
@click.option('--with-threads/--without-threads', default=True, |
|
|
|
@click.option('--with-threads/--without-threads', default=True, |
|
|
|
help='Enable or disable multithreading.') |
|
|
|
help='Enable or disable multithreading.') |
|
|
|
|
|
|
|
@click.option('--extra-files', '-f', |
|
|
|
|
|
|
|
multiple=True, default=None, type=click.Path(), |
|
|
|
|
|
|
|
help='Files reloader should watch additionally to the modules') |
|
|
|
@pass_script_info |
|
|
|
@pass_script_info |
|
|
|
def run_command(info, host, port, reload, debugger, eager_loading, |
|
|
|
def run_command(info, host, port, reload, debugger, eager_loading, |
|
|
|
with_threads, cert): |
|
|
|
with_threads, cert, extra_files): |
|
|
|
"""Run a local development server. |
|
|
|
"""Run a local development server. |
|
|
|
|
|
|
|
|
|
|
|
This server is for development purposes only. It does not provide |
|
|
|
This server is for development purposes only. It does not provide |
|
|
@ -773,7 +776,8 @@ def run_command(info, host, port, reload, debugger, eager_loading, |
|
|
|
|
|
|
|
|
|
|
|
from werkzeug.serving import run_simple |
|
|
|
from werkzeug.serving import run_simple |
|
|
|
run_simple(host, port, app, use_reloader=reload, use_debugger=debugger, |
|
|
|
run_simple(host, port, app, use_reloader=reload, use_debugger=debugger, |
|
|
|
threaded=with_threads, ssl_context=cert) |
|
|
|
threaded=with_threads, ssl_context=cert, |
|
|
|
|
|
|
|
extra_files=extra_files) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command('shell', short_help='Runs a shell in the app context.') |
|
|
|
@click.command('shell', short_help='Runs a shell in the app context.') |
|
|
|