membersystem/Makefile

30 lines
638 B
Makefile
Raw Normal View History

.PHONY: run makemigrations migrate createsuperuser shell manage_command build requirements
DOCKER_COMPOSE = COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose
2021-12-13 19:44:09 +00:00
DOCKER_RUN = ${DOCKER_COMPOSE} run -u `id -u`
MANAGE_EXEC = python /app/src/manage.py
2024-07-14 21:14:07 +00:00
MANAGE_COMMAND = ${DOCKER_RUN} app ${MANAGE_EXEC}
2022-11-21 19:51:09 +00:00
run:
2021-12-13 19:44:09 +00:00
${DOCKER_COMPOSE} up
2021-02-28 22:55:01 +00:00
makemigrations:
${MANAGE_COMMAND} makemigrations ${ARGS}
migrate:
${MANAGE_COMMAND} migrate ${ARGS}
createsuperuser:
2021-12-13 19:44:09 +00:00
${MANAGE_COMMAND} createsuperuser
shell:
2021-12-13 19:44:09 +00:00
${MANAGE_COMMAND} shell
manage_command:
${MANAGE_COMMAND} ${ARGS}
2024-07-20 20:33:30 +00:00
build:
${DOCKER_COMPOSE} build
2024-07-29 22:24:16 +00:00
requirements:
2024-08-02 22:59:51 +00:00
hatch run requirements