Skip to content

Commit

Permalink
chore: kill 80 port 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bongsh0112 committed Sep 16, 2023
1 parent a7b8edf commit 8af49de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,12 @@ jobs:
key: ${{ secrets.NCP_PEM }}
port: 22
script: |
CURRENT_PID=$(pgrep -f java)
if [ -z "$CURRENT_PID" ]; then
echo "> no applcation named java is running"
else
echo "> kill -9 java"
kill -9 $CURRENT_PID
sleep 5
fi
nohup java -jar -Dspring.profiles.active=dev -Dnaver.storage.access-key=${{ secrets.ACCESS_KEY }} -Dnaver.storage.secret-key=${{ secrets.SECRET_KEY }} /var/app/app.jar > nohup.log 2> nohup.err < /dev/null &

0 comments on commit 8af49de

Please sign in to comment.