Switches the webserver over to Granian

This commit is contained in:
Trenton H
2025-02-14 11:22:57 -08:00
parent 628d85080f
commit 9d07810caf
6 changed files with 78 additions and 56 deletions

View File

@@ -4,7 +4,7 @@
cd ${PAPERLESS_SRC_DIR}
if [[ -n "${USER_IS_NON_ROOT}" ]]; then
exec /usr/local/bin/gunicorn -c /usr/src/paperless/gunicorn.conf.py paperless.asgi:application
exec python3 /usr/src/paperless/webserver.py
else
exec s6-setuidgid paperless /usr/local/bin/gunicorn -c /usr/src/paperless/gunicorn.conf.py paperless.asgi:application
exec s6-setuidgid paperless python3 /usr/src/paperless/webserver.py
fi