1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-05-22 10:07:10 +10:00
parent 961f2ec528
commit 0e28a77e1f
2 changed files with 5 additions and 6 deletions

View File

@ -4,15 +4,10 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor
docker pull docker.med-logic.ru/tfoms-patient:latest
cd /root/medicine-config/medicine-stack
docker-compose exec postgres psql -c 'CREATE DATABASE tfoms_patient' --username=postgres
read -p "Enter organization name: " ORGANIZATION_NAME
cat <<EOT >> /root/medicine-config/tfoms-patient/.env
SENTRY_SITE=$ORGANIZATION_NAME
EOT
cd /root/medicine-config/tfoms-patient
docker-compose up -d
docker-compose run --rm tfoms-patient bash -c "(cd /app/tfoms && flask db upgrade)"
cd /root/medicine-config/tfoms-patient && docker-compose up -d

4
tfoms-patient/restart.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
docker-compose stop
docker-compose up -d