19 lines
388 B
Bash
Executable File
19 lines
388 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
docker pull docker.med-logic.ru/medicine:latest
|
|
|
|
(cd /root/medicine-config/medicine && (
|
|
docker run --rm \
|
|
--env-file .env \
|
|
--network medicine-network \
|
|
--name medicine-apply-migrations \
|
|
docker.med-logic.ru/medicine:latest python manage.py migrate --noinput
|
|
)
|
|
|
|
(cd /root/medicine-config/medicine &&
|
|
docker-compose stop &&
|
|
docker-compose up -d
|
|
)
|