Add build phase to compile localization messages during the build process
This commit is contained in:
parent
d6d630dd30
commit
9797415f0c
1 changed files with 10 additions and 3 deletions
13
flake.nix
13
flake.nix
|
@ -313,6 +313,16 @@
|
|||
cp ${settingsLocal} bitpoll/settings_local.py
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
# Compile localization messages during build to avoid runtime write issues
|
||||
export PYTHONPATH=$PWD:$PYTHONPATH
|
||||
${pythonEnv}/bin/python manage.py compilemessages
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
@ -482,9 +492,6 @@
|
|||
|
||||
# Collect static files
|
||||
${cfg.package}/bin/bitpoll-manage collectstatic --noinput --clear
|
||||
|
||||
# Compile messages
|
||||
${cfg.package}/bin/bitpoll-manage compilemessages
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue