17 lines
650 B
Makefile
17 lines
650 B
Makefile
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
|
|
|
|
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:
|
|
docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations"
|