Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyineverywhere authored Nov 20, 2023
1 parent 8701c80 commit 528ec48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REPOSITORY=/home/ubuntu/app
cd $REPOSITORY

CURRENT_CONTAINER=$(sudo docker ps -aq --filter "name=qcard")
CURRENT_CONTAINER=$(sudo docker ps -aq --filter "name=snapspot")

if [ -z $CURRENT_CONTAINER ]
then
Expand All @@ -12,5 +12,5 @@ else
sudo docker rmi $CURRENT_CONTAINER
fi

sudo docker build -t qcard .
sudo docker run -d -p 80:8080 --name qcard --network app qcard
sudo docker build -t snapspot .
sudo docker run -d -p 80:8080 --name snapspot --network app snapspot

0 comments on commit 528ec48

Please sign in to comment.