Skip to content

Commit

Permalink
Allow setting APP with envvar UVICORN_APP
Browse files Browse the repository at this point in the history
  • Loading branch information
aceat64 committed Sep 20, 2023
1 parent e2a3979 commit 044d6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No


@click.command(context_settings={"auto_envvar_prefix": "UVICORN"})
@click.argument("app")
@click.argument("app", envvar="UVICORN_APP")
@click.option(
"--host",
type=str,
Expand Down

0 comments on commit 044d6c7

Please sign in to comment.