1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2023-10-16 21:33:27 +10:00
parent 2063c5e05e
commit 054ac805b6
1 changed files with 12 additions and 0 deletions

12
medicine-remd/update.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine-remd:latest
docker-compose run --rm medicine-remd python manage.py migrate --noinput
docker-compose run --rm medicine-remd python manage.py load_sync_config
docker-compose stop
docker-compose up -d
docker rmi $(docker images -f "dangling=true" -q)