Compare commits
No commits in common. "1704e1b4d29427314626785b7474d387af24123c" and "17ffc8249ca444b5ec50ef04920a497ee514a2c7" have entirely different histories.
1704e1b4d2
...
17ffc8249c
|
|
@ -9,7 +9,6 @@ unzip /root/medicine-config/backups/medicine.sql.zip -d /root/medicine-config/vo
|
|||
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql
|
||||
|
||||
read -p "Enter organization name: " ORGANIZATION_NAME
|
||||
read -p "Enter organization id: " ORGANIZATION_ID
|
||||
|
||||
SECRET_KEY=$(openssl rand -base64 32)
|
||||
|
||||
|
|
@ -19,8 +18,6 @@ SECRET_KEY=$SECRET_KEY
|
|||
|
||||
SENTRY_SITE=$ORGANIZATION_NAME
|
||||
|
||||
ORGANIZATION_ID=$ORGANIZATION_ID
|
||||
|
||||
EOT
|
||||
|
||||
cd /root/medicine-config/medicine
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ docker pull docker.med-logic.ru/medicine-remd:latest
|
|||
read -r -p "Create database? [y/N] " response
|
||||
if [[ $prompt =~ [yY](es)* ]]
|
||||
then
|
||||
docker exec medicine-stack-postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres
|
||||
cd /root/medicine-config/medicine-stack
|
||||
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres
|
||||
fi
|
||||
|
||||
read -p "Enter organization name: " ORGANIZATION_NAME
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ if test -f "${archive_filename}"; then
|
|||
fi
|
||||
tar -czf "${archive_filename}" "${backup_filename}"
|
||||
rm "${backup_filename}"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
|
||||
docker pull docker.med-logic.ru/medicine:latest
|
||||
docker run --rm --env-file .env --network medicine-network --name medicine-apply-migrations docker.med-logic.ru/medicine:latest python manage.py migrate --noinput
|
||||
Loading…
Reference in New Issue