ansible/playbooks/apps/files/checkout/update
2024-10-11 17:34:22 +02:00

9 lines
268 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
pushd /mnt/data/checkout
docker compose --ansi never pull --quiet
docker compose --ansi never up -d
docker compose exec django python manage.py migrate
docker compose exec django python manage.py refresh_cache
popd
docker image prune -f