27 lines
820 B
Makefile
27 lines
820 B
Makefile
run:
|
|
docker-compose --env-file=stack.env up -d
|
|
|
|
build:
|
|
docker-compose --env-file=stack.env build
|
|
|
|
stop:
|
|
docker-compose --env-file=stack.env down
|
|
|
|
log:
|
|
docker-compose --env-file=stack.env logs -f
|
|
|
|
test:
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py test $(MODULES) -v 2"
|
|
|
|
migrate:
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate"
|
|
|
|
makemigrations:
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
|
|
|
|
auth:
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser"
|
|
|
|
token:
|
|
docker-compose --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py addstatictoken m"
|