mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Add gunicorn option to docker-entrypoint script
This commit is contained in:
parent
1c956652f3
commit
dcc959d4f7
@ -99,7 +99,12 @@ if [[ "$1" != "/"* ]]; then
|
|||||||
install_languages "$PAPERLESS_OCR_LANGUAGES"
|
install_languages "$PAPERLESS_OCR_LANGUAGES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec sudo -HEu paperless "/usr/src/paperless/src/manage.py" "$@"
|
if [[ "$1" = "gunicorn" ]]; then
|
||||||
|
cd /usr/src/paperless/src/ && \
|
||||||
|
exec sudo -HEu paperless /usr/bin/gunicorn -c gunicorn.conf paperless.wsgi
|
||||||
|
else
|
||||||
|
exec sudo -HEu paperless "/usr/src/paperless/src/manage.py" "$@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user