fisk/Makefile-prod

27 lines
836 B
Plaintext
Raw Normal View History

2022-10-13 14:26:43 +00:00
run:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env up -d
2022-10-13 14:26:43 +00:00
build:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env build
2022-10-13 14:26:43 +00:00
stop:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env down
2022-10-13 14:26:43 +00:00
log:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env logs -f
2022-11-25 19:28:21 +00:00
test:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env run -e LIVE=$(LIVE) --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES) -v 2"
2022-11-25 19:28:21 +00:00
migrate:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
makemigrations:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
2022-10-16 12:36:17 +00:00
auth:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
2022-10-17 06:20:30 +00:00
token:
2023-07-29 16:28:12 +00:00
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"