Clear old staticfiles when deploying

This commit is contained in:
Gabriel Augendre 2020-08-18 10:43:44 +02:00
parent 74cd886080
commit d2a42b6b3a

View file

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
yes yes | python manage.py migrate && \ yes yes | python manage.py migrate \
#yes yes | pipenv run python manage.py createcachetable && \ && python manage.py collectstatic --noinput --clear \
python manage.py collectstatic --noinput && \ && gunicorn blog.wsgi -b 0.0.0.0:8000 --log-file -
gunicorn blog.wsgi -b 0.0.0.0:8000 --log-file -