Enable user-controlled gunicorn options in docker-compose file

This commit is contained in:
Florian Gabsteiger 2019-09-21 15:45:10 +02:00
parent bdeaf33462
commit d390005c5c

View File

@ -100,8 +100,9 @@ if [[ "$1" != "/"* ]]; then
fi
if [[ "$1" = "gunicorn" ]]; then
shift
cd /usr/src/paperless/src/ && \
exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf paperless.wsgi
exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf "$@" paperless.wsgi
else
exec sudo -HEu paperless "/usr/src/paperless/src/manage.py" "$@"
fi