Skip to content

Commit

Permalink
#3 docs: nohup 로그 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
psyeon1120 committed Jul 14, 2023
1 parent 6a2a6f7 commit 8ca0412
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ CURRENT_PID=$(pgrep -f $APP_NAME)

if [ -z $CURRENT_PID ]
then
echo "> 종료할 애플리케이션이 없습니다." >> $REPOSITORY/deploy.log
echo "> 종료할 애플리케이션이 없습니다."
else
echo "> kill -9 $CURRENT_PID" >> $REPOSITORY/deploy.log
echo "> kill -9 $CURRENT_PID"
kill -15 $CURRENT_PID
sleep 5
fi

echo "> Deploy - $JAR_PATH " >> $REPOSITORY/deploy.log
nohup java -jar $JAR_PATH
echo "> Deploy - $JAR_PATH "
nohup java -jar $JAR_PATH > /dev/null 2> /dev/null < /dev/null &

0 comments on commit 8ca0412

Please sign in to comment.