Skip to content

Commit

Permalink
Added existence check to the reload directory(ies) (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 authored and Kludex committed Nov 17, 2021
1 parent fd2d740 commit 69273a0
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
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
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
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 69273a0

Please sign in to comment.