collect module static files with each run

This commit is contained in:
Andreas Zweili 2020-03-03 10:20:35 +01:00
parent dc8625369e
commit 8861060b9a
3 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View File

@ -173,3 +173,6 @@ migrations/
.pytest_cache/
htmlcov/
.second_run
network_inventory/network_inventory/static/
!network_inventory/network_inventory/static/core

View File

@ -1,6 +1,7 @@
#!/bin/bash
if [ -f ./.second_run ]; then
sleep 2
python manage.py collectstatic --noinput
python manage.py makemigrations
python manage.py migrate
else

1
run.sh
View File

@ -1,6 +1,7 @@
#!/bin/bash
if [ -f ./.second_run ]; then
sleep 2
python manage.py collectstatic --noinput
python manage.py makemigrations
python manage.py migrate
else