2
0
Fork 0

nix: make systemd unit run compilescss before start

This commit is contained in:
D Anzorge 2022-02-28 00:19:10 +01:00
parent 7784714f80
commit 05fd8e2300

View file

@ -394,6 +394,9 @@ in
${concatStringsSep "\n" (mapAttrsToList (n: v: ''export ${n}="$(cat ${escapeShellArg v})"'') envSecrets)}
${bookwyrm}/bin/python ${bookwyrm}/manage.py migrate --noinput
${bookwyrm}/bin/python ${bookwyrm}/manage.py collectstatic --noinput --clear
# --use-storage will output directly to STATIC_ROOT; without it, the sass processor
# will try to write to the Nix store
${bookwyrm}/bin/python ${bookwyrm}/manage.py compilescss --use-storage
'';
script = ''