diff --git a/Makefile b/Makefile index a49db52b4656711ef12be8ec7d46b3360302880e..3de72d5792e9268b6e81b460d953e6862bc1660f 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