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:
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment