Skip to content

Commit

Permalink
ㄹㅁㅈㄹ
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Sep 9, 2024
1 parent 45191e0 commit 99070c6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/be-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ jobs:
- name: Kill previous application
run: |
PID=$(lsof -t -i:8080)
echo "PID: $PID"
if [ -n "${PID}" ]; then
echo "Killing process $PID running on port 8080"
if kill -9 $PID; then
echo "Process $PID has been killed"
else
echo "Failed to kill process $PID"
fi
kill -9 $PID
echo "Process $PID has been killed"
else
echo "No process is running on port 8080"
echo "No process is running on port 8080"
fi
- name: Run latest application
Expand Down

0 comments on commit 99070c6

Please sign in to comment.