From 14effd33e21627b3e56695fa5c3045a0890b6e09 Mon Sep 17 00:00:00 2001 From: reverend Date: Fri, 14 Jan 2022 12:39:57 +0100 Subject: [PATCH] Adding collectstatic to the quickstart script --- Pipfile | 1 + tasks.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Pipfile b/Pipfile index 3afedd3..a828b33 100644 --- a/Pipfile +++ b/Pipfile @@ -30,6 +30,7 @@ dbshell = "django_lostplaces/manage.py dbshell" showmigrations = "django_lostplaces/manage.py showmigrations" makemigrations = "django_lostplaces/manage.py makemigrations --no-input" migrate = "django_lostplaces/manage.py migrate" +collectstatic = "django_lostplaces/manage.py collectstatic" build = "django_lostplaces/setup.py bdist_wheel --universal" createsuperuser = "django_lostplaces/manage.py createsuperuser --noinput --username admin --email admin@example.org" createsuperuser_prompt = "django_lostplaces/manage.py createsuperuser" diff --git a/tasks.py b/tasks.py index 149c14f..75209b0 100644 --- a/tasks.py +++ b/tasks.py @@ -3,6 +3,7 @@ from invoke import task @task def quickstart(c): commands = [ + 'pipenv run collectstatic', 'pipenv run migrate', 'pipenv run createsuperuser', 'pipenv run server' @@ -14,6 +15,7 @@ def live(c): commands = [ 'pipenv check', 'pipenv run test', + 'pipenv run collectstatic', 'pipenv run migrate', 'pipenv run createsuperuser_prompt' 'pipenv run server'