Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nykoh2001 authored May 25, 2024
1 parent f0407e7 commit a8aa6ea
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,5 +1,5 @@
#!/bin/bash
BUILD_PATH=$(ls /home/ubuntu/app/nowsopt-0.0.1-SNAPSHOT.jar)
BUILD_PATH=$(ls /home/ubuntu/app/cicd-0.0.1-SNAPSHOT.jar)
JAR_NAME=$(basename $BUILD_PATH)
echo "> build 파일명: $JAR_NAME"

Expand Down Expand Up @@ -28,7 +28,7 @@ else
fi

echo "> application.jar 교체"
GREEN_APPLICATION=$GREEN_PROFILE-nowsopt.jar
GREEN_APPLICATION=$GREEN_PROFILE-cicd.jar
GREEN_APPLICATION_PATH=$DEPLOY_PATH$GREEN_APPLICATION

ln -Tfs $DEPLOY_PATH$JAR_NAME $GREEN_APPLICATION_PATH
Expand Down Expand Up @@ -74,7 +74,7 @@ do
done

echo "> $BLUE_PROFILE 에서 구동중인 애플리케이션 pid 확인"
BLUE_PID=$(pgrep -f $BLUE_PROFILE-nowsopt.jar)
BLUE_PID=$(pgrep -f $BLUE_PROFILE-cicd.jar)

if [ -z $BLUE_PID ]
then
Expand Down

0 comments on commit a8aa6ea

Please sign in to comment.