Add more make targets

This commit is contained in:
Mark Veidemanis 2022-11-03 07:20:30 +00:00
parent 32de41ed89
commit 8a6ca7c2c9
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 12 additions and 0 deletions

View File

@ -9,3 +9,15 @@ stop:
log:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env logs -f
migrate:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
makemigrations:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
auth:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
token:
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"