Skip to content
Snippets Groups Projects
Verified Commit 323cc4ba authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

build: add collectstatic command before running

parent c1e183fb
No related branches found
No related tags found
No related merge requests found
Pipeline #3467 passed
...@@ -29,6 +29,9 @@ showmigrations: ...@@ -29,6 +29,9 @@ showmigrations:
migrate: migrate:
$(POETRY_RUN_MANAGE) migrate --no-input $(POETRY_RUN_MANAGE) migrate --no-input
collectstatic:
$(POETRY_RUN_MANAGE) collectstatic --no-input
loadfixtures: loadfixtures:
# TODO: reduce the fixtures loaded to the very minimum # TODO: reduce the fixtures loaded to the very minimum
$(POETRY_RUN_MANAGE) loaddata fixtures/*/*.json $(POETRY_RUN_MANAGE) loaddata fixtures/*/*.json
...@@ -39,13 +42,13 @@ loaddata: ...@@ -39,13 +42,13 @@ loaddata:
removestaleimages: removestaleimages:
$(POETRY_RUN_MANAGE) 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 $(POETRY_RUN_MANAGE) runserver 0.0.0.0:8000
dev.install: dev.install:
$(POETRY) install --no-root $(POETRY) install --no-root
run.prod: migrate run.prod: migrate collectstatic
$(POETRY_RUN) gunicorn --bind 0.0.0.0:8000 --workers `nproc` steering.wsgi $(POETRY_RUN) gunicorn --bind 0.0.0.0:8000 --workers `nproc` steering.wsgi
run.debug: migrate run.debug: migrate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment