nix: make systemd unit run compilescss before start
This commit is contained in:
parent
7784714f80
commit
05fd8e2300
1 changed files with 3 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue