Skip to content

Commit

Permalink
app.jar kill (#27)
Browse files Browse the repository at this point in the history
* chore: kill 80 port 추가

* chore: kill 80 port 추가 2트

---------

Co-authored-by: Jong1 <44349716+donsonioc2010@users.noreply.github.com>
  • Loading branch information
bongsh0112 and donsonioc2010 authored Sep 16, 2023
1 parent ba28555 commit bc3dbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ jobs:
key: ${{ secrets.NCP_PEM }}
port: 22
script: |
CURRENT_PID=$(pgrep -f java)
CURRENT_PID=$(pgrep -fl app | grep java | awk '{print $1}' )
if [ -z "$CURRENT_PID" ]; then
echo "> no applcation named java is running"
else
else
echo "> kill -9 java"
kill -9 $CURRENT_PID
sleep 5
Expand Down

0 comments on commit bc3dbde

Please sign in to comment.