Skip to content

Commit

Permalink
fix: fix kill process as force kill
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisWooyeol committed Nov 28, 2023
1 parent 795ba01 commit 8a48a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/springboot-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Execute remote commands
run: |
ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \
"kill $(pgrep -f springboot-0.0.1-SNAPSHOT.jar) || true && \
"kill -9 $(pgrep -f springboot-0.0.1-SNAPSHOT.jar) || true && \
cd ${{ secrets.SPRINGBOOT_ROOT_DIR }} && \
sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar & \
sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar \
> ${{ secrets.SPRINGBOOT_ROOT_DIR }}/app.log 2>&1 &"

0 comments on commit 8a48a74

Please sign in to comment.