22import webbrowser
33
44import click
5- from flask .cli import pass_script_info , show_server_banner , DispatchingApp , SeparatedPathType
6- from flask .helpers import get_debug_flag , get_env
5+ from flask .cli import pass_script_info , show_server_banner , SeparatedPathType
6+ from flask .helpers import get_debug_flag
77from utils .config import Config
88
99
@@ -106,12 +106,6 @@ def is_port_in_use(host, port):
106106 help = "Enable or disable the debugger. By default the debugger "
107107 "is active if debug is enabled." ,
108108)
109- @click .option (
110- "--eager-loading/--lazy-loading" ,
111- default = None ,
112- help = "Enable or disable eager loading. By default eager "
113- "loading is enabled if the reloader is disabled." ,
114- )
115109@click .option (
116110 "--with-threads/--without-threads" ,
117111 default = True ,
@@ -135,7 +129,7 @@ def is_port_in_use(host, port):
135129)
136130@pass_script_info
137131def run_command (
138- info , host , port , reload , debugger , eager_loading , with_threads , extra_files , quiet
132+ info , host , port , reload , debugger , with_threads , extra_files , quiet
139133):
140134 """Run a local development server.
141135
@@ -153,8 +147,8 @@ def run_command(
153147 if debugger is None :
154148 debugger = debug
155149
156- show_server_banner (get_env (), debug , info .app_import_path , eager_loading )
157- app = DispatchingApp ( info .load_app , use_eager_loading = eager_loading )
150+ show_server_banner (debug , info .app_import_path )
151+ app = info .load_app ( )
158152
159153 if is_port_in_use (host , port ):
160154 raise ValueError (f"The port '{ port } ' already been used in '{ host } ', please specify a new port in '--port' argument." )
0 commit comments