1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-04-07 16:35:27 +10:00
parent 1a825e90d5
commit 7db81f84b2
2 changed files with 18 additions and 0 deletions

18
tfoms-patient/install.sh Executable file
View File

@ -0,0 +1,18 @@
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
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 app bash -c "(cd /app/tfoms && flask db upgrade)"

0
tfoms-patient/update.sh Normal file → Executable file
View File