You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Module path to the Esmerald application. In a module:path format.",
130
131
),
131
132
],
133
+
path: typing.Annotated[
134
+
str|None,
135
+
Option(
136
+
required=False,
137
+
help="A path to a Python file or package directory with ([blue]__init__.py[/blue] files) containing a [bold]Lilya[/bold] app. If not provided, Lilya will try to discover.",
help="A path to a Python file or package directory with ([blue]__init__.py[/blue] files) containing a [bold]Esmerald[/bold] app. If not provided, Esmerald will try to discover.",
54
-
),
55
-
],
56
49
port: Annotated[
57
50
int, Option(8000, "-p", help="Port to run the development server.", show_default=True)
58
51
],
@@ -196,11 +189,13 @@ def runserver(
196
189
)
197
190
toolkit.print_line()
198
191
199
-
ifdebug:
200
-
app.debug=debug
192
+
ifdebugandenv.esmerald_app:
193
+
env.esmerald_app.debug=debug
201
194
202
195
uvicorn.run(
203
-
app=pathorenv.path,
196
+
# in case of no reload and workers, we might end up initializing twice when
0 commit comments