Skip to content

Commit

Permalink
Added an environment variable SERVER_WORKERS to increase concurrency.
Browse files Browse the repository at this point in the history
  • Loading branch information
WongSaang committed Mar 31, 2023
1 parent a6201a8 commit adf415b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ python manage.py migrate

python manage.py createsuperuser --no-input

exec gunicorn chatgpt_ui_server.wsgi --timeout 60 --bind 0.0.0.0:8000 --access-logfile -
export WORKERS=${SERVER_WORKERS:-3}

exec gunicorn chatgpt_ui_server.wsgi --workers=$WORKERS --timeout 60 --bind 0.0.0.0:8000 --access-logfile -

0 comments on commit adf415b

Please sign in to comment.