Adding collectstatic to the quickstart script
This commit is contained in:
parent
19300614bc
commit
14effd33e2
1
Pipfile
1
Pipfile
@ -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"
|
||||||
|
2
tasks.py
2
tasks.py
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user