File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 29
29
"AWS_S3_REGION_NAME" : " ${AWS_S3_REGION_NAME}" ,
30
30
"AWS_DEFAULT_ACL" : " ${AWS_DEFAULT_ACL}" ,
31
31
"AWS_LOCATION" : " ${AWS_LOCATION}" ,
32
- "AWS_S3_CUSTOM_DOMAIN" : " ${AWS_S3_CUSTOM_DOMAIN}"
32
+ "AWS_S3_CUSTOM_DOMAIN" : " ${AWS_S3_CUSTOM_DOMAIN}" ,
33
+ "STATICFILES_DIRS" : " ${STATICFILES_DIRS}"
33
34
}
34
35
}
35
36
]
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ def get_health_check(self, request):
94
94
description = str (settings .AWS_S3_REGION_NAME ),
95
95
health = "healthy" ,
96
96
),
97
+ HealthCheck .Detail (
98
+ name = "STATICFILES_DIRS" ,
99
+ description = str (settings .STATICFILES_DIRS ),
100
+ health = "healthy" ,
101
+ ),
97
102
],
98
103
)
99
104
Original file line number Diff line number Diff line change 63
63
# STATIC_ROOT = get_static_root(BASE_DIR)
64
64
STATIC_ROOT = os .getenv ("STATIC_ROOT" , BASE_DIR / "static" )
65
65
STATIC_URL = os .getenv ("STATIC_URL" , "/static/" )
66
- # STATICFILES_DIRS = ["static"]
66
+ STATICFILES_DIRS = (
67
+ os .environ ["STATICFILES_DIRS" ].split ("," )
68
+ if os .getenv ("STATICFILES_DIRS" )
69
+ else []
70
+ )
67
71
68
72
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
69
73
AWS_STORAGE_BUCKET_NAME = os .getenv ("AWS_STORAGE_BUCKET_NAME" )
You can’t perform that action at this time.
0 commit comments