2022-10-13 14:26:43 +00:00
|
|
|
run:
|
|
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env up -d
|
|
|
|
|
|
|
|
build:
|
|
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env build
|
|
|
|
|
|
|
|
stop:
|
|
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env down
|
|
|
|
|
|
|
|
log:
|
|
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env logs -f
|
2022-10-15 20:51:47 +00:00
|
|
|
|
2022-11-25 19:28:21 +00:00
|
|
|
test:
|
|
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES)"
|
|
|
|
|
2022-10-15 20:51:47 +00:00
|
|
|
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:
|
2022-10-16 12:36:17 +00:00
|
|
|
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"
|
2022-10-17 06:20:30 +00:00
|
|
|
|
|
|
|
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"
|