Collect static files on container start
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2023-10-17 01:02:56 +02:00
parent 4001306a0b
commit 2a2cb5f92e
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
set -ex
rm -rf /app/static
python manage.py collectstatic
python manage.py migrate
if [ -z "$1" ] || [ "${1%-}" != "$1" ]

View File

@ -124,6 +124,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_ROOT = BASE_DIR / "static"
STATIC_URL = "static/"
# Default primary key field type