Skip to content

Commit

Permalink
Merge pull request #96 from wafflestudio/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
yeonsumia authored Aug 17, 2022
2 parents 7b774a5 + 35c989e commit a1cf46e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/deploy/runDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

if [ "$DEPLOYMENT_GROUP_NAME" == "dev" ]
then
# Remove any anonymous volumes attached to containers
sudo docker-compose -f ~/deploy/docker-compose.yml rm -v
# Remove any anonymous volumes attached to containers (-v)
sudo docker-compose -f ~/deploy/docker-compose.yml rm
# Recreate anonymous volumes instead of retrieving data from the previous containers (--renew-anon-volumes)
sudo docker-compose -f ~/deploy/docker-compose.yml up -d
# build images and run containers
echo "[Deploy] : Running new Application"
sudo docker-compose -f ~/deploy/docker-compose.yml up --detach --renew-anon-volumes
fi

0 comments on commit a1cf46e

Please sign in to comment.