2022-10-12 06:22:22 +00:00
|
|
|
run:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env up -d
|
2022-10-12 06:22:22 +00:00
|
|
|
|
|
|
|
build:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env build
|
2022-10-12 06:22:22 +00:00
|
|
|
|
|
|
|
stop:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env down
|
2022-10-12 06:22:22 +00:00
|
|
|
|
|
|
|
log:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env logs -f
|
2022-11-03 07:20:30 +00:00
|
|
|
|
|
|
|
migrate:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
|
2022-11-03 07:20:30 +00:00
|
|
|
|
|
|
|
makemigrations:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
|
2022-11-03 07:20:30 +00:00
|
|
|
|
|
|
|
auth:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
|
2022-11-03 07:20:30 +00:00
|
|
|
|
|
|
|
token:
|
2022-11-10 07:20:14 +00:00
|
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"
|