From 218f9ea5956498c2f17b40128a5600074e57f6d0 Mon Sep 17 00:00:00 2001 From: Chris GIACOFEI Date: Wed, 5 Jun 2024 11:54:44 -0400 Subject: [PATCH] Run collectstatic before restart. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec5e1fb..6ff5d79 100644 --- a/Makefile +++ b/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