2022-10-13 14:26:43 +00:00
|
|
|
run:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env up -d
|
2022-10-13 14:26:43 +00:00
|
|
|
|
|
|
|
build:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env build
|
2022-10-13 14:26:43 +00:00
|
|
|
|
|
|
|
stop:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env down
|
2022-10-13 14:26:43 +00:00
|
|
|
|
|
|
|
log:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env logs -f
|
2022-10-15 20:51:47 +00:00
|
|
|
|
2022-11-25 19:28:21 +00:00
|
|
|
test:
|
2022-12-12 19:52:48 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES) -v 2"
|
2022-11-25 19:28:21 +00:00
|
|
|
|
2022-10-15 20:51:47 +00:00
|
|
|
migrate:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
|
2022-10-15 20:51:47 +00:00
|
|
|
|
|
|
|
makemigrations:
|
2022-10-18 06:22:22 +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:
|
2022-10-18 06:22:22 +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:
|
2022-10-18 06:22:22 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"
|