From 9ccf56b065586aca9d4a1a886dfc3a1e526e2185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=8C=ED=9C=98=EC=98=81?= <76817418+hweyoung@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:14:57 +0900 Subject: [PATCH] Update deploy.sh --- scripts/deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 에 실행권한 추가"