From d2a42b6b3a31cd02f6e72ad9048bd79f7b8a033e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 18 Aug 2020 10:43:44 +0200 Subject: [PATCH] Clear old staticfiles when deploying --- docker/run.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/run.sh b/docker/run.sh index d1c1466..2b332b0 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -1,5 +1,4 @@ #!/bin/sh -yes yes | python manage.py migrate && \ -#yes yes | pipenv run python manage.py createcachetable && \ -python manage.py collectstatic --noinput && \ -gunicorn blog.wsgi -b 0.0.0.0:8000 --log-file - +yes yes | python manage.py migrate \ +&& python manage.py collectstatic --noinput --clear \ +&& gunicorn blog.wsgi -b 0.0.0.0:8000 --log-file -