File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def register_config(config: Optional[str] = None):
78
78
return config_file_path
79
79
80
80
# 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
82
82
# - Usage: gunicorn -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT --timeout=90 --workers=2 "guardrails_api.app:create_app(None, None, $PORT)"
83
83
def create_app (
84
84
env : Optional [str ] = GR_ENV_FILE , config : Optional [str ] = GR_CONFIG_FILE_PATH , port : Optional [int ] = PORT
You can’t perform that action at this time.
0 commit comments