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
* allow wrapped lilya instances, add lilya_app
- recheck some app variables app, appilication if there is a wrapped lilya instance
- fix crash in show-urls
- fix double import in runserver
* fix ignored path
* use baselilya as type
---------
Co-authored-by: tarsil <tiago.arasilva@gmail.com>
required=False, help="Module path to the Lilya application. In a module:path format."
133
134
),
134
135
],
136
+
path: typing.Annotated[
137
+
str|None,
138
+
Option(
139
+
required=False,
140
+
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]Lilya[/bold] app. If not provided, Lilya will try to discover.",
50
-
),
51
-
],
52
45
port: Annotated[
53
46
int, Option(8000, "-p", help="Port to run the development server.", show_default=True)
54
47
],
@@ -187,13 +180,15 @@ def runserver(
187
180
tag="note",
188
181
)
189
182
190
-
ifdebug:
191
-
app.debug=debug
183
+
ifdebugandenv.lilya_app:
184
+
env.lilya_app.debug=debug
192
185
193
186
toolkit.print_line()
194
187
195
188
uvicorn.run(
196
-
app=pathorenv.path,
189
+
# in case of no reload and workers, we might end up initializing twice when
0 commit comments