nix: move manage.py to libexec/bookwyrm/ in output
This commit is contained in:
parent
7d36d6d317
commit
5997912288
2 changed files with 7 additions and 7 deletions
|
@ -22,9 +22,9 @@ let
|
|||
});
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/
|
||||
|
||||
cp ./manage.py $out/
|
||||
mkdir -p $out/libexec/bookwyrm
|
||||
|
||||
cp ./manage.py $out/libexec/bookwyrm
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -44,7 +44,7 @@ let
|
|||
bookwyrmManageScript = (pkgs.writeScriptBin "bookwyrm-manage" ''
|
||||
#!/usr/bin/env bash
|
||||
source ${loadEnv}
|
||||
exec ${bookwyrm}/bin/python ${bookwyrm}/manage.py "$@"
|
||||
exec ${bookwyrm}/libexec/bookwyrm/manage.py "$@"
|
||||
'');
|
||||
in
|
||||
{
|
||||
|
@ -392,11 +392,11 @@ 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 --clear
|
||||
${bookwyrm}/libexec/bookwyrm/manage.py migrate --noinput
|
||||
${bookwyrm}/libexec/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
|
||||
${bookwyrm}/libexec/bookwyrm/manage.py compilescss --use-storage
|
||||
'';
|
||||
|
||||
script = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue