summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/settings/prod.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/conf/settings/prod.py b/conf/settings/prod.py
index f6b2d77..cb1842a 100644
--- a/conf/settings/prod.py
+++ b/conf/settings/prod.py
@@ -2,9 +2,6 @@ import os
from .base import *
-# Database
-# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
-
# Check if running in OpenShift cluster
if os.path.exists("/etc/secret-volume"):
# Read database credentials from mounted Secret volume
@@ -33,3 +30,8 @@ DATABASES = {
"PORT": db_port,
}
}
+
+if os.getenv("STATIC_ROOT"):
+ STATIC_ROOT = os.getenv("STATIC_ROOT")
+else:
+ STATIC_ROOT = "/data/static"