Skip to content

Commit

Permalink
Added existence check to the reload directory(ies) (encode#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 authored and Kludex committed Oct 29, 2022
1 parent 74b4d1b commit 74b0e76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Options:
--uds TEXT Bind to a UNIX domain socket.
--fd INTEGER Bind to socket from this file descriptor.
--reload Enable auto-reload.
--reload-dir TEXT Set reload directories explicitly, instead
--reload-dir PATH Set reload directories explicitly, instead
of using the current working directory.
--reload-delay FLOAT Delay between previous and next check if
application needs to be. Defaults to 0.25s.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Options:
--uds TEXT Bind to a UNIX domain socket.
--fd INTEGER Bind to socket from this file descriptor.
--reload Enable auto-reload.
--reload-dir TEXT Set reload directories explicitly, instead
--reload-dir PATH Set reload directories explicitly, instead
of using the current working directory.
--reload-delay FLOAT Delay between previous and next check if
application needs to be. Defaults to 0.25s.
Expand Down
1 change: 1 addition & 0 deletions uvicorn/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No
multiple=True,
help="Set reload directories explicitly, instead of using the current working"
" directory.",
type=click.Path(exists=True),
)
@click.option(
"--reload-delay",
Expand Down

0 comments on commit 74b0e76

Please sign in to comment.