From 140907726934bd756ac3b5c84a384daa8f816a3a Mon Sep 17 00:00:00 2001 From: thisiswooyeol Date: Mon, 20 Nov 2023 21:38:28 +0900 Subject: [PATCH] fix --- .github/workflows/springboot-on-push.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/springboot-on-push.yaml b/.github/workflows/springboot-on-push.yaml index 2ea467e5..f7587c21 100644 --- a/.github/workflows/springboot-on-push.yaml +++ b/.github/workflows/springboot-on-push.yaml @@ -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 &"