Gunicorn restart depends on file changes.
This commit is contained in:
parent
16e7531ac5
commit
54a4d11788
3
Makefile
3
Makefile
@ -21,9 +21,10 @@ $(VENV)/.migrate: $(MODELS)
|
||||
$(PYTHON) manage.py collectstatic --noinput
|
||||
touch $(VENV)/.migrate
|
||||
|
||||
$(VENV)/.start: $(HTMLFILES) $(VENV)/.migrate
|
||||
$(VENV)/.start: $(HTMLFILES) $(PYFILES)
|
||||
sudo systemctl restart gunicorn.service gunicorn.socket
|
||||
touch $(VENV)/.start
|
||||
|
||||
.PHONY: migrate
|
||||
migrate: $(VENV)/.migrate ## Make and run migrations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user