2021-02-27 20:07:48 +00:00
|
|
|
DOCKER_RUN = docker-compose run
|
|
|
|
DOCKER_BUILD = DOCKER_BUILDKIT=1 docker build
|
|
|
|
MANAGE = ${DOCKER_RUN} backend python /app/src/manage.py
|
2018-06-23 19:08:56 +00:00
|
|
|
|
|
|
|
lint:
|
2019-08-31 22:25:25 +00:00
|
|
|
poetry run pre-commit run --all
|
2018-06-23 19:08:56 +00:00
|
|
|
|
2021-02-27 20:07:48 +00:00
|
|
|
run:
|
|
|
|
docker-compose up --build
|
|
|
|
|
|
|
|
build:
|
|
|
|
docker-compose build
|
|
|
|
|
|
|
|
makemigrations:
|
|
|
|
${MANAGE} makemigrations ${EXTRA_ARGS}
|
|
|
|
|
|
|
|
migrate:
|
|
|
|
${MANAGE} migrate ${EXTRA_ARGS}
|
|
|
|
|
|
|
|
createsuperuser:
|
|
|
|
${MANAGE} createsuperuser
|
|
|
|
|
|
|
|
shell:
|
|
|
|
${MANAGE} shell
|
|
|
|
|
|
|
|
manage_command:
|
|
|
|
${MANAGE} ${COMMAND}
|
|
|
|
|
2018-06-23 19:08:56 +00:00
|
|
|
test:
|
2021-02-27 20:07:48 +00:00
|
|
|
${DOCKER_RUN} backend pytest src/
|