1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2023-08-30 11:19:18 +10:00
parent 164d1cbc7f
commit 6254dd0766
5 changed files with 4 additions and 2 deletions

0
bash_scripts/docker-install.sh Normal file → Executable file
View File

5
bash_scripts/install-medicine.sh Normal file → Executable file
View File

@ -5,7 +5,7 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor
docker pull docker.med-logic.ru/medicine-nginx:latest docker pull docker.med-logic.ru/medicine-nginx:latest
docker pull docker.med-logic.ru/medicine-app:latest docker pull docker.med-logic.ru/medicine-app:latest
unzip ../backups/medicine.sql.zip ../volumes/files/ unzip ../backups/medicine.sql.zip -d ../volumes/files/
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql
@ -14,3 +14,6 @@ if [ ! -f .env ]
then then
cp env.sample .env cp env.sample .env
fi fi
docker-compose run --rm app python manage.py migrate --noinput
docker-compose run --rm app python manage.py collectstatic --noinput

0
bash_scripts/install-remd.sh Normal file → Executable file
View File

0
bash_scripts/install.sh Normal file → Executable file
View File

View File

@ -25,7 +25,6 @@ post_update() {
docker-compose run --rm app python manage.py migrate --noinput docker-compose run --rm app python manage.py migrate --noinput
docker-compose run --rm app python manage.py collectstatic --noinput docker-compose run --rm app python manage.py collectstatic --noinput
docker-compose run --rm app python manage.py post_update docker-compose run --rm app python manage.py post_update
docker-compose run --rm app python manage.py catalog2_importdata
} }
docker_cleanup() { docker_cleanup() {