Skip to content

Commit

Permalink
Makefile: Run collectstatic in "make run" for non-debug mode
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
vincent-olivert-riera committed Nov 28, 2023
1 parent a2b6412 commit 112a98e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 112a98e

Please sign in to comment.