forked from data.coop/membersystem
31 lines
489 B
Makefile
31 lines
489 B
Makefile
DOCKER_RUN = docker-compose run
|
|
DOCKER_BUILD = DOCKER_BUILDKIT=1 docker build
|
|
MANAGE = ${DOCKER_RUN} backend python /app/src/manage.py
|
|
|
|
lint:
|
|
poetry run pre-commit run --all
|
|
|
|
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}
|
|
|
|
test:
|
|
${DOCKER_RUN} backend pytest src/
|