Skip to content

Commit

Permalink
use default env for dev start, use threads instead of workers
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebCourier committed Jun 28, 2024
1 parent 0bfd97c commit b1b3478
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions guardrails_api/start-dev.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
export APP_ENVIRONMENT=local
export PYTHONUNBUFFERED=1
export LOGLEVEL="INFO"
export GUARDRAILS_LOG_LEVEL="INFO"
export GUARDRAILS_PROCESS_COUNT=1
export SELF_ENDPOINT=http://localhost:8000
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

gunicorn --bind 0.0.0.0:8000 --timeout=5 --threads=10 "guardrails_api.app:create_app()" --reload
2 changes: 1 addition & 1 deletion guardrails_api/start.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gunicorn --bind 0.0.0.0:8000 --timeout=5 --workers=10 --worker-class=gthread "guardrails_api.app:create_app()"
gunicorn --bind 0.0.0.0:8000 --timeout=5 --threads=10 "guardrails_api.app:create_app()"

0 comments on commit b1b3478

Please sign in to comment.