about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-04-07 18:01:20 +0200
committerGitHub <noreply@github.com>2024-04-07 18:01:20 +0200
commit0f3f375722ce5cf3ae908ec7f02d38b52696c55b (patch)
treeadb28dcbdb1a2ceb9bc271548a286dad085367c8 /nixos
parented84791ac25d312faac65e083764bc65dbce37c8 (diff)
parent08746b5cf79cbdd9ca68fff3ed8bdc72f29b7027 (diff)
Merge pull request #282912 from phaer/healthchecks-update
healthchecks: 2.10 -> 3.3
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/healthchecks.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/healthchecks.nix b/nixos/modules/services/web-apps/healthchecks.nix
index 1d439f162313b..04b40e6eb8b08 100644
--- a/nixos/modules/services/web-apps/healthchecks.nix
+++ b/nixos/modules/services/web-apps/healthchecks.nix
@@ -213,8 +213,7 @@ in
           preStart = ''
             ${pkg}/opt/healthchecks/manage.py collectstatic --no-input
             ${pkg}/opt/healthchecks/manage.py remove_stale_contenttypes --no-input
-            ${pkg}/opt/healthchecks/manage.py compress
-          '';
+          '' + lib.optionalString (cfg.settings.DEBUG != "True") "${pkg}/opt/healthchecks/manage.py compress";
 
           serviceConfig = commonConfig // {
             Restart = "always";