Skip to content

Commit

Permalink
fix: deploy.sh build 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Jan 28, 2024
1 parent bc3963c commit ce24572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
REPOSITORY=/home/ubuntu/app
cd $REPOSITORY

./gradlew build

CURRENT_PID=$(pgrep -fl action | grep java | awk '{print $1}')

echo "현재 구동 중인 애플리케이션 pid: $CURRENT_PID"
Expand All @@ -23,5 +25,4 @@ echo "> $JAR_NAME 에 실행권한 추가"
chmod +x $JAR_NAME

echo "> $JAR_NAME 실행"
source ~/.bashrc
nohup java -jar $JAR_NAME > $REPOSITORY/build/libs/nohup.out 2>&1 &

0 comments on commit ce24572

Please sign in to comment.