Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisWooyeol committed Nov 20, 2023
1 parent 6ccdd96 commit 1409077
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 @@ -47,12 +47,12 @@ jobs:
- name: SCP jar file to server
run: |
scp *jar ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }}:\
${{ secrets.SPRINGBOOT_TARGET_DIR }}/springboot/build/libs
${{ secrets.SPRINGBOOT_TARGET_DIR }}
working-directory: ./springboot/build/libs
- name: Execute remote commands
run: |
ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \
"fuser -k 8080/tcp || true"
ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \
"sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/build/libs/*.jar\
"sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar\
> {{ secrets.SPRINGBOOT_TARGET_DIR }}/app.log 2>&1 &"

0 comments on commit 1409077

Please sign in to comment.