neptune/Makefile

21 lines
758 B
Makefile
Raw Normal View History

run:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env up -d
build:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env build
stop:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env down
log:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env logs -f
migrate:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
makemigrations:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
auth:
2024-12-29 17:37:23 +00:00
docker-compose -f docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"