From 7904f42f79eda7b42a5d9a6cab4264abe9aeb648 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 1 Feb 2021 21:29:30 +0100 Subject: [PATCH] build first, then restart --- scripts/portal-upgrade.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/portal-upgrade.sh b/scripts/portal-upgrade.sh index da863bca..6d377da0 100755 --- a/scripts/portal-upgrade.sh +++ b/scripts/portal-upgrade.sh @@ -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