From 112a98e3713eafc068fbc8e55a002609054dc601 Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera Date: Tue, 28 Nov 2023 17:31:27 +0900 Subject: [PATCH] Makefile: Run collectstatic in "make run" for non-debug mode When running "make run" in non-debug mode, collectstatic needs to be run, otherwise we will see errors like this one: ValueError: Missing staticfiles manifest entry for "vue.global.prod.js" --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e44e7dd33..dbef64b83 100644 --- a/Makefile +++ b/Makefile @@ -114,6 +114,9 @@ migrate: $(APP_BIN) .PHONY: run ## Django: Run development server run: migrate +ifneq ($(DEBUG),1) + $(APP_BIN) collectstatic --noinput +endif $(APP_BIN) runserver .PHONY: shell