Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove explicit worker configuration from gunicorn command

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