Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Increase the number of workers that gunicorn will spawn

Roland Geider96743f834e2a
diff --git a/extras/docker/production/entrypoint.sh b/extras/docker/production/entrypoint.sh
index d40015fc1..10fa03e29 100644
--- a/extras/docker/production/entrypoint.sh
+++ b/extras/docker/production/entrypoint.sh
@@ -92,7 +92,8 @@ python3 manage.py set-site-url
if [[ "$WGER_USE_GUNICORN" == "True" ]];
then
echo "Using gunicorn..."
- gunicorn wger.wsgi:application --reload --bind 0.0.0.0:8000
+ WORKERS=${GUNICORN_WORKERS:-4}
+ gunicorn wger.wsgi:application --workers $WORKERS --threads 2 --preload --bind 0.0.0.0:8000
else
echo "Using django's development server..."
python3 manage.py runserver 0.0.0.0:8000