Use exec instead of subprocess in Bookwyrm executable

This commit is contained in:
Reinout Meliesie 2025-03-07 13:34:29 +01:00
parent 5c6c496e45
commit eb6a52e822
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -113,7 +113,7 @@ mkDerivation {
export EMAIL_HOST_PASSWORD=""
export SECRET_KEY="\$( ${coreutils-full}/bin/cat /etc/nixos/assets/bookwyrm-secret-key )" # The escape here is required in order to retrieve the key file contents at runtime
${gunicorn}/bin/gunicorn bookwyrm.wsgi:application --bind=unix:/run/bookwyrm/http-socket
exec ${gunicorn}/bin/gunicorn bookwyrm.wsgi:application --bind=unix:/run/bookwyrm/http-socket
EOF
chmod +x $out/bin/bookwyrm