Copy gunicorn.conf to docker container and use it in entrypoint

This commit is contained in:
Florian Gabsteiger
2019-08-09 13:39:57 -09:00
parent dcc959d4f7
commit bdeaf33462
3 changed files with 4 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ if [[ "$1" != "/"* ]]; then
if [[ "$1" = "gunicorn" ]]; then
cd /usr/src/paperless/src/ && \
exec sudo -HEu paperless /usr/bin/gunicorn -c 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