Skip to content
Snippets Groups Projects
Verified Commit 38b5bd91 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Docker] Move colelctstatic to container startup again

This is to force update of static files if mounted from a host volume.
parent da26a4f6
No related branches found
No related tags found
No related merge requests found
Pipeline #797 passed with warnings
...@@ -48,8 +48,7 @@ RUN set -e; \ ...@@ -48,8 +48,7 @@ RUN set -e; \
# Build messages and assets # Build messages and assets
RUN eatmydata python manage.py compilemessages && \ RUN eatmydata python manage.py compilemessages && \
eatmydata python manage.py yarn install && \ eatmydata python manage.py yarn install \
eatmydata python manage.py collectstatic --no-input --clear
# Clean up build dependencies # Clean up build dependencies
RUN set -e; \ RUN set -e; \
......
...@@ -17,6 +17,7 @@ while ! nc -z $ALEKSIS_database__host $ALEKSIS_database__port; do ...@@ -17,6 +17,7 @@ while ! nc -z $ALEKSIS_database__host $ALEKSIS_database__port; do
sleep 0.1 sleep 0.1
done done
python manage.py collectstatic --no-input --clear
python manage.py migrate python manage.py migrate
if [[ -n "$@" ]]; then if [[ -n "$@" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment