diff --git a/scripts/deploy.sh b/scripts/deploy.sh index b948803..8ecf1d3 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -REPOSITORY=/home/ubuntu/app +REPOSITORY=/home/ec2-user/app cd $REPOSITORY -CURRENT_PID=$(pgrep -fla java | grep reetplace | awk '{print $1}') +CURRENT_PID=$(pgrep -fla java | grep common | awk '{print $1}') echo "현재 구동중인 애플리케이션 pid : $CURRENT_PID" @@ -19,7 +19,7 @@ fi echo "> 새 애플리케이션 배포" -JAR_NAME=$(ls $REPOSITORY/ | grep 'SNAPSHOT.jar' | tail -n 1) +JAR_NAME=$(ls $REPOSITORY/ | grep '*.jar' | tail -n 1) echo "Jar Name : $JAR_NAME" echo "$JAR_NAME 에 실행권한 추가"