Remove compile_themes from Bookwyrm service, add temporary build phase

This commit is contained in:
Reinout Meliesie 2025-03-09 17:01:14 +01:00
parent c5f5c973c0
commit 37763f144e
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 8 additions and 2 deletions

View file

@ -17,7 +17,6 @@ with pkgs . kernelmaft ;
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py migrate
ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py initdb
ExecStartPre=${bookwyrm}/bin/bookwyrm-env ${python311}/bin/python ${bookwyrm}/lib/python3.11/manage.py compile_themes
ExecStart=${bookwyrm}/bin/bookwyrm-env ${bookwyrm}/bin/bookwyrm
WorkingDirectory=/var/lib/bookwyrm

View file

@ -23,7 +23,14 @@ mkDerivation {
dontPatch = true ;
dontConfigure = true ;
dontBuild = true ;
buildPhase = ''
runHook preBuild
pwd
runHook postBuild
'' ;
installPhase = let
pythonDependencies = [