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)