build first, then restart

This commit is contained in:
Karol Wypchlo 2021-02-01 21:29:30 +01:00
parent 810ca56029
commit 7904f42f79
1 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,9 @@ cwd=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
# put the server down for maintenance
. ${cwd}/portal-down.sh
# build all container without cache
docker-compose build --no-cache --parallel --pull --quiet
# stop the docker services
docker-compose down
@ -20,9 +23,6 @@ docker system prune --force
# important for webapp container, otherwise html files will not be updated)
docker volume rm $(docker volume ls -q)
# build all container without cache
docker-compose build --no-cache --parallel --pull --quiet
# start the docker services
docker-compose up -d