2021-12-31 23:27:06 +01:00
|
|
|
from invoke import task
|
|
|
|
|
|
|
|
@task
|
|
|
|
def quickstart(c):
|
|
|
|
commands = [
|
2022-01-14 12:39:57 +01:00
|
|
|
'pipenv run collectstatic',
|
2021-12-31 23:27:06 +01:00
|
|
|
'pipenv run migrate',
|
|
|
|
'pipenv run createsuperuser',
|
|
|
|
'pipenv run server'
|
|
|
|
]
|
|
|
|
c.run(' && '.join(commands))
|
|
|
|
|
|
|
|
@task
|
|
|
|
def live(c):
|
|
|
|
commands = [
|
|
|
|
'pipenv check',
|
|
|
|
'pipenv run test',
|
2022-01-14 12:39:57 +01:00
|
|
|
'pipenv run collectstatic',
|
2021-12-31 23:27:06 +01:00
|
|
|
'pipenv run migrate',
|
|
|
|
'pipenv run createsuperuser_prompt'
|
|
|
|
'pipenv run server'
|
|
|
|
]
|
|
|
|
c.run(' && '.join(commands))
|