Skip to content

Commit

Permalink
Update gh_deploy.sh
Browse files Browse the repository at this point in the history
The deployment failed because a specified file already exists at this location: /home/ubuntu/github_action/.gitmessage.txt
에러 해결하기 위해 추가한 코드
  • Loading branch information
aacara committed Nov 21, 2023
1 parent 86ebda3 commit bccb29f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/gh_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ cp $BUILD_JAR $DEPLOY_PATH
echo "> 현재 동작중인 어플리케이션 pid 체크" >> $DEPLOY_LOG_PATH
CURRENT_PID=$(pgrep -f $JAR_NAME)

if [ -f "/home/ubuntu/github_action/.gitmessage.txt" ]; then
rm "/home/ubuntu/github_action/.gitmessage.txt"
fi

if [ -z $CURRENT_PID ]
then
echo "> 현재 동작중인 어플리케이션 존재 X" >> $DEPLOY_LOG_PATH
Expand Down

0 comments on commit bccb29f

Please sign in to comment.