Skip to content

Commit

Permalink
bug: ec2에서 libs 디렉토리를 무한히 생성하는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
wonu606 authored Jan 16, 2024
1 parent 838ab44 commit 5920dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ REPOSITORY=/home/ubuntu/studay
cd $REPOSITORY

APP_NAME=studay
JAR_NAME=$(ls $REPOSITORY/build/libs/ | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME
JAR_NAME=$(ls $REPOSITORY/build/libs/*.jar | grep 'SNAPSHOT.jar' | tail -n 1)
JAR_PATH=$JAR_NAME

# systemd 서비스를 중지합니다.
sudo systemctl stop $APP_NAME.service
Expand Down

0 comments on commit 5920dd3

Please sign in to comment.