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
Copy file name to clipboardExpand all lines: src/fastapi_cli/cli.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ def dev(
211
211
int,
212
212
typer.Option(
213
213
help="The port to serve on. You would normally have a termination proxy on top (another program) handling HTTPS on port [blue]443[/blue] and HTTP on port [blue]80[/blue], transferring the communication to your app.",
214
-
envvar="FASTAPI_PORT",
214
+
envvar=["FASTAPI_PORT", "PORT"],
215
215
),
216
216
] =8000,
217
217
reload: Annotated[
@@ -319,7 +319,7 @@ def run(
319
319
int,
320
320
typer.Option(
321
321
help="The port to serve on. You would normally have a termination proxy on top (another program) handling HTTPS on port [blue]443[/blue] and HTTP on port [blue]80[/blue], transferring the communication to your app.",
0 commit comments