diff options
author | phaer <hello@phaer.org> | 2024-02-20 10:27:11 +0100 |
---|---|---|
committer | phaer <hello@phaer.org> | 2024-04-05 12:13:17 +0000 |
commit | 55a16a6282d8a601f30b445ee9169949428f731e (patch) | |
tree | 0e16848ed986462d568e434c81f7b816ddb4b7a9 /nixos/modules/services/web-apps | |
parent | e92a4bdf78be94542519dfebbd9097c78af9de74 (diff) |
nixos/healthchecks: don't compress in debug mode
Diffstat (limited to 'nixos/modules/services/web-apps')
-rw-r--r-- | nixos/modules/services/web-apps/healthchecks.nix | 3 |
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 1d439f162313..04b40e6eb8b0 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"; |