Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hweyoung authored Dec 6, 2023
1 parent 478647f commit 9ccf56b
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,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"

Expand All @@ -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 에 실행권한 추가"
Expand Down

0 comments on commit 9ccf56b

Please sign in to comment.