From 5b00cb06425a5b2c2fa6fe2ee8d9dc71cd4e87e0 Mon Sep 17 00:00:00 2001 From: HeeChul Yang <113877384+yangchef1@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:03:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Spring=20application=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EB=A1=9C=EA=B7=B8=EB=A5=BC=20nohup.out=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20redirect=20=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EB=8F=99=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index b4cf161..0606a24 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -55,4 +55,4 @@ jobs: - name: Deploy to EC2 run: | sshpass -p ${{ secrets.EC2_PASSWORD }} scp -o StrictHostKeyChecking=no build/libs/sanbosillokserver-0.0.1-SNAPSHOT.jar ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }}:/home/${{ secrets.EC2_USERNAME }}/ - sshpass -p ${{ secrets.EC2_PASSWORD }} ssh -T -o StrictHostKeyChecking=no ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} "bash -l -c 'pgrep java | xargs kill -9; nohup java -jar sanbosillokserver-0.0.1-SNAPSHOT.jar & disown'" + sshpass -p ${{ secrets.EC2_PASSWORD }} ssh -T -o StrictHostKeyChecking=no ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} "bash -l -c 'pgrep java | xargs kill -9; nohup java -jar sanbosillokserver-0.0.1-SNAPSHOT.jar > nohup.out 2>&1 &'"