From ce580e99d03e3e90d97d8b606af55b1c42430636 Mon Sep 17 00:00:00 2001 From: HeeChul Yang <113877384+yangchef1@users.noreply.github.com> Date: Sat, 11 May 2024 13:45:48 +0900 Subject: [PATCH] Update CD.yml --- .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 1b5a4f5..472ab72 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -47,4 +47,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 }} "chmod +r .bashrc; source ~/.bashrc; pgrep java | xargs kill -9; nohup java -jar sanbosillokserver-0.0.1-SNAPSHOT.jar &" + sshpass -p ${{ secrets.EC2_PASSWORD }} ssh -T -o StrictHostKeyChecking=no ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} "chmod +r .bashrc; ls -al ;source ~/.bashrc; pgrep java | xargs kill -9; nohup java -jar sanbosillokserver-0.0.1-SNAPSHOT.jar &"