Skip to content

Commit

Permalink
chore: 배포 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeuk520 committed Sep 22, 2024
1 parent 15ca860 commit 489f520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ JAR_PATH=$REPOSITORY/build/libs/$JAR_NAME

CURRENT_PID=$(pgrep -f $APP_NAME)

if [ -z $CURRENT_PID ] #2
if [ -z $CURRENT_PID ]
then
echo "> 현재 구동중인 애플리케이션이 없으므로 종료하지 않습니다."
else
Expand All @@ -16,5 +16,5 @@ else
sleep 5
fi

echo "> $JAR_PATH 배포" #3
nohup java -jar -Dspring.profiles.active=prod $JAR_PATH >> $REPOSITORY/log/deploy.log 2 > $REPOSITORY/log/deploy_err.log &
echo "> $JAR_PATH 배포"
nohup java -jar -Dspring.profiles.active=prod $JAR_PATH >> $REPOSITORY/log/deploy.log 2>> $REPOSITORY/log/deploy_err.log &

0 comments on commit 489f520

Please sign in to comment.