From 02b66db30a0be44a22df2da5997022d87866a9e2 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Tue, 3 Dec 2024 22:45:55 +0100 Subject: [PATCH] wger: stay on debug, otherwise weird stuff happens --- machines/gerd/services/wger/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/machines/gerd/services/wger/default.nix b/machines/gerd/services/wger/default.nix index afe2ffa..cbc6965 100644 --- a/machines/gerd/services/wger/default.nix +++ b/machines/gerd/services/wger/default.nix @@ -18,7 +18,11 @@ let }; django_settings = rec { - DEBUG = false; + # enable debug for now, otherwise it tries + # to create a CACHE folder/file in the CWD. + # and if I fix that, then static content no + # longer wants to load. + DEBUG = true; DATABASES.default = { ENGINE = "django.db.backends.postgresql"; NAME = "wger"; @@ -101,6 +105,10 @@ in { serviceConfig = { EnvironmentFile = config.age.secrets.wger-env.path; + # ensure it does not try to create `/CACHE` + PrivateTmp = "yes"; + WorkingDirectory = "/tmp"; + User = "wger"; Group = "wger"; };