From 221f621a66f0f08cc1b37781281c8233d096f176 Mon Sep 17 00:00:00 2001 From: Javi <8519394+rtomyj@users.noreply.github.com> Date: Sat, 3 Feb 2024 01:48:42 -0600 Subject: [PATCH] updated --- deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index b6ec624..322e244 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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