2
0
Fork 0

nix: use --clear with collectstatic

collectstatic relies on timestamps, but nix store timestamps are always
0 so it ends up not copying new files
This commit is contained in:
D Anzorge 2021-09-23 00:51:26 +02:00
parent ac7c642726
commit 0c3b9bba22

View file

@ -393,7 +393,7 @@ in
preStart = ''
${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
${bookwyrm}/bin/python ${bookwyrm}/manage.py collectstatic --noinput --clear
'';
script = ''