From ae7d1b306619b3a6ce7d6e7d00c136884fd65ec8 Mon Sep 17 00:00:00 2001 From: gol2580 Date: Sat, 20 Jan 2024 03:02:03 +0900 Subject: [PATCH] [CI] code-deploy.yml --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a27a126..82777b7 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -2,7 +2,7 @@ REPOSITORY=/home/ec2-user/app cd $REPOSITORY APP_NAME=kimgreen -JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | tail -n 1) +JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep '.jar' | head -n 1) JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME CURRENT_PID=$(pgrep -f $APP_NAME)