diff --git a/docs/deployment.md b/docs/deployment.md index cec0d8ef8..8aabe1b18 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -45,7 +45,7 @@ Options: --workers INTEGER Number of worker processes. Defaults to the $WEB_CONCURRENCY environment variable if - available. Not valid with --reload. + available, or 1. Not valid with --reload. --loop [auto|asyncio|uvloop] Event loop implementation. [default: auto] --http [auto|h11|httptools] HTTP protocol implementation. [default: diff --git a/docs/index.md b/docs/index.md index be1a096ca..ae587f2ee 100644 --- a/docs/index.md +++ b/docs/index.md @@ -115,7 +115,7 @@ Options: --workers INTEGER Number of worker processes. Defaults to the $WEB_CONCURRENCY environment variable if - available. Not valid with --reload. + available, or 1. Not valid with --reload. --loop [auto|asyncio|uvloop] Event loop implementation. [default: auto] --http [auto|h11|httptools] HTTP protocol implementation. [default: diff --git a/docs/settings.md b/docs/settings.md index 2a717ab93..8b8398f83 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -24,7 +24,7 @@ equivalent keyword arguments, eg. `uvicorn.run("example:app", port=5000, reload= ## Production -* `--workers ` - Use multiple worker processes. Defaults to the value of the `$WEB_CONCURRENCY` environment variable. +* `--workers ` - Use multiple worker processes. Defaults to the `$WEB_CONCURRENCY` environment variable if available, or 1. ## Logging diff --git a/uvicorn/main.py b/uvicorn/main.py index 6bfc631f0..d7e866ec4 100644 --- a/uvicorn/main.py +++ b/uvicorn/main.py @@ -90,7 +90,7 @@ def print_version(ctx, param, value): default=None, type=int, help="Number of worker processes. Defaults to the $WEB_CONCURRENCY environment" - " variable if available. Not valid with --reload.", + " variable if available, or 1. Not valid with --reload.", ) @click.option( "--loop",