Run collectstatic before restart.
This commit is contained in:
parent
54a4d11788
commit
218f9ea595
2
Makefile
2
Makefile
@ -18,10 +18,10 @@ $(VENV)/.install: requirements.txt
|
||||
$(VENV)/.migrate: $(MODELS)
|
||||
$(PYTHON) manage.py makemigrations
|
||||
$(PYTHON) manage.py migrate
|
||||
$(PYTHON) manage.py collectstatic --noinput
|
||||
touch $(VENV)/.migrate
|
||||
|
||||
$(VENV)/.start: $(HTMLFILES) $(PYFILES)
|
||||
$(PYTHON) manage.py collectstatic --noinput
|
||||
sudo systemctl restart gunicorn.service gunicorn.socket
|
||||
touch $(VENV)/.start
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user