From 323cc4bac0d38ba0bd3340820e44b6e7967d65bb Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Sat, 10 Jun 2023 09:03:26 -0400
Subject: [PATCH] build: add collectstatic command before running

---
 Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a49db52b..3de72d57 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,9 @@ showmigrations:
 migrate:
 	$(POETRY_RUN_MANAGE) migrate --no-input
 
+collectstatic:
+	$(POETRY_RUN_MANAGE) collectstatic --no-input
+
 loadfixtures:
 	# TODO: reduce the fixtures loaded to the very minimum
 	$(POETRY_RUN_MANAGE) loaddata fixtures/*/*.json
@@ -39,13 +42,13 @@ loaddata:
 removestaleimages:
 	$(POETRY_RUN_MANAGE) removestaleimages
 
-run.dev: dev.install migrate
+run.dev: dev.install migrate collectstatic
 	$(POETRY_RUN_MANAGE) runserver 0.0.0.0:8000
 
 dev.install:
 	$(POETRY) install --no-root
 
-run.prod: migrate
+run.prod: migrate collectstatic
 	$(POETRY_RUN) gunicorn --bind 0.0.0.0:8000 --workers `nproc` steering.wsgi
 
 run.debug: migrate
-- 
GitLab