Skip to content

Commit 20c664a

Browse files
Update guardrails_api/app.py
1 parent 19f6813 commit 20c664a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guardrails_api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def register_config(config: Optional[str] = None):
7878
return config_file_path
7979

8080
# Support for providing env vars as uvicorn does not support supplying args to create_app
81-
# - Usage: uvicorn --factory 'guardrails_api.app:create_app' --host 0.0.0.0 --port $PORT --workers 2 --timeout-keep-alive 90
81+
# - Usage: GR_CONFIG_FILE_PATH=config.py GR_ENV_FILE=.env PORT=8080 uvicorn --factory 'guardrails_api.app:create_app' --host 0.0.0.0 --port $PORT --workers 2 --timeout-keep-alive 90
8282
# - Usage: gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT --timeout=90 --workers=2 "guardrails_api.app:create_app(None, None, $PORT)"
8383
def create_app(
8484
env: Optional[str] = GR_ENV_FILE, config: Optional[str] = GR_CONFIG_FILE_PATH, port: Optional[int] = PORT

0 commit comments

Comments
 (0)