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:
parent
ac7c642726
commit
0c3b9bba22
1 changed files with 1 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue