Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomyj committed Feb 3, 2024
1 parent 3e59b46 commit 221f621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ DIR_ON_SERVER="api/podcast-api"
echo "Using server $SERVER and directory $DIR_ON_SERVER to sync prod API"

echo "Uploading API files"
rsync -avz --recursive -e "ssh -i ~/.ssh/project-next.pem" docker-compose.yml "${USER}@${SERVER}:${DIR_ON_SERVER}/"
rsync -avz --recursive -e "ssh -i ~/.ssh/project-next.pem" -R "build/libs/podcast-api.jar" "${USER}@${SERVER}:${DIR_ON_SERVER}/"
rsync -avz -e "ssh -i ~/.ssh/project-next.pem" docker-compose.yml "${USER}@${SERVER}:${DIR_ON_SERVER}/"
rsync -avz -e "ssh -i ~/.ssh/project-next.pem" -R "build/libs/podcast-api.jar" "${USER}@${SERVER}:${DIR_ON_SERVER}/"

echo "Restaging API"
ssh -i ~/.ssh/project-next.pem "${USER}@${SERVER}" << "EOF"
ssh -i ~/.ssh/project-next.pem "${USER}@${SERVER}" << EOF
cd "$DIR_ON_SERVER"
docker-compose kill
docker-compose rm -f
Expand Down

0 comments on commit 221f621

Please sign in to comment.