cookiecutter-django/{{cookiecutter.project_slug}}/contrib/server/update

9 lines
231 B
Text
Raw Permalink Normal View History

2022-12-16 22:12:15 +01:00
#!/bin/bash
set -euxo pipefail
pushd /mnt/data/{{cookiecutter.project_slug}}
docker compose --ansi never pull --quiet
docker compose --ansi never up -d
docker compose exec django python manage.py migrate
popd
docker image prune -f