Skip to content

Commit

Permalink
makefile: add media folder on make install to ensure app can find foo…
Browse files Browse the repository at this point in the history
…ter on first make watch
  • Loading branch information
philli-m authored and goapunk committed Oct 26, 2023
1 parent 840e30d commit 8b56b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VIRTUAL_ENV ?= venv
MEDIA_ROOT = media
NODE_BIN = node_modules/.bin
SOURCE_DIRS = digitalstrategie apps tests
ARGUMENTS=$(filter-out $(firstword $(MAKECMDGOALS)), $(MAKECMDGOALS))
Expand Down Expand Up @@ -47,6 +48,7 @@ install:
if [ ! -f $(VIRTUAL_ENV)/bin/python3 ]; then python3 -m venv $(VIRTUAL_ENV); fi
$(VIRTUAL_ENV)/bin/python3 -m pip install --upgrade -r requirements/dev.txt
$(VIRTUAL_ENV)/bin/python3 manage.py migrate
mkdir -p $(MEDIA_ROOT)

.PHONY: clean
clean:
Expand Down

0 comments on commit 8b56b9f

Please sign in to comment.