build first, then restart
This commit is contained in:
parent
810ca56029
commit
7904f42f79
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue