Collect static files on container start
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4001306a0b
commit
2a2cb5f92e
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
rm -rf /app/static
|
||||||
|
python manage.py collectstatic
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
if [ -z "$1" ] || [ "${1%-}" != "$1" ]
|
if [ -z "$1" ] || [ "${1%-}" != "$1" ]
|
||||||
|
|
|
@ -124,6 +124,7 @@ USE_TZ = True
|
||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||||
|
|
||||||
|
STATIC_ROOT = BASE_DIR / "static"
|
||||||
STATIC_URL = "static/"
|
STATIC_URL = "static/"
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
|
|
Loading…
Reference in New Issue