Adding collectstatic to the quickstart script

This commit is contained in:
reverend 2022-01-14 12:39:57 +01:00
parent 19300614bc
commit 14effd33e2
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ dbshell = "django_lostplaces/manage.py dbshell"
showmigrations = "django_lostplaces/manage.py showmigrations" showmigrations = "django_lostplaces/manage.py showmigrations"
makemigrations = "django_lostplaces/manage.py makemigrations --no-input" makemigrations = "django_lostplaces/manage.py makemigrations --no-input"
migrate = "django_lostplaces/manage.py migrate" migrate = "django_lostplaces/manage.py migrate"
collectstatic = "django_lostplaces/manage.py collectstatic"
build = "django_lostplaces/setup.py bdist_wheel --universal" build = "django_lostplaces/setup.py bdist_wheel --universal"
createsuperuser = "django_lostplaces/manage.py createsuperuser --noinput --username admin --email admin@example.org" createsuperuser = "django_lostplaces/manage.py createsuperuser --noinput --username admin --email admin@example.org"
createsuperuser_prompt = "django_lostplaces/manage.py createsuperuser" createsuperuser_prompt = "django_lostplaces/manage.py createsuperuser"

View File

@ -3,6 +3,7 @@ from invoke import task
@task @task
def quickstart(c): def quickstart(c):
commands = [ commands = [
'pipenv run collectstatic',
'pipenv run migrate', 'pipenv run migrate',
'pipenv run createsuperuser', 'pipenv run createsuperuser',
'pipenv run server' 'pipenv run server'
@ -14,6 +15,7 @@ def live(c):
commands = [ commands = [
'pipenv check', 'pipenv check',
'pipenv run test', 'pipenv run test',
'pipenv run collectstatic',
'pipenv run migrate', 'pipenv run migrate',
'pipenv run createsuperuser_prompt' 'pipenv run createsuperuser_prompt'
'pipenv run server' 'pipenv run server'