1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2022-02-04 14:46:53 +10:00
parent 4fb99c3339
commit c56bd8c405
2 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,12 @@
### Install ### Установка
> git clone https://ilya_muhortov@bitbucket.org/med-logic/medicine-config.git > git clone https://ilya_muhortov@bitbucket.org/med-logic/medicine-config.git
> chmod +x ~/medicine-config/bash_scripts/docker-install.sh ~/medicine-config/bash_scripts/install.sh ~/medicine-config/medicine/run.sh > chmod +x ~/medicine-config/bash_scripts/docker-install.sh ~/medicine-config/bash_scripts/install.sh ~/medicine-config/medicine/run.sh
### Problems ### Решение проблем
> Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY` > Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

View File

@ -22,9 +22,8 @@ backup_database() {
} }
post_update() { post_update() {
docker-compose run --rm app python manage.py migrate directory --noinput
docker-compose run --rm app python manage.py directory_importdata all
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 directory_importdata all
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
} }
@ -47,8 +46,11 @@ update() {
fast_update() { fast_update() {
pull_images pull_images
docker-compose run --rm app python manage.py migrate --noinput
docker-compose stop docker-compose stop
docker-compose up -d docker-compose up -d
docker_cleanup
} }
${COMMAND} ${COMMAND}