update portal upgrade script

This commit is contained in:
Karol Wypchlo 2020-09-21 18:48:46 +02:00
parent 98cd70faea
commit c03c482d36
1 changed files with 11 additions and 2 deletions

View File

@ -8,9 +8,18 @@ cwd=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
# put the server down for maintenance
. ${cwd}/portal-down.sh
# rebuild and restart all docker containers
docker-compose build --no-cache
# stop the docker services
docker-compose down
# clear unused docker containers so we don't run into out of disk space
# it should be done after the container have been stopped and before
# building them again
docker system prune --force
# build all container without cache
docker-compose build --no-cache
# start the docker services
docker-compose up -d
# enable the server again