Skip to content

Commit ef45a0e

Browse files
fix: add collectstatic to release command, fix STORAGES config for Django 5.2
1 parent 69e5f1b commit ef45a0e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
web: gunicorn dcrm.wsgi:application
2-
release: python manage.py migrate --noinput
2+
release: python manage.py collectstatic --noinput && python manage.py migrate --noinput

dcrm/settings/prod.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@
4545

4646
# Static files
4747
STATIC_ROOT = BASE_DIR / "staticfiles"
48-
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
48+
STORAGES = {
49+
"staticfiles": {
50+
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
51+
},
52+
}

0 commit comments

Comments
 (0)