From c891e6ac31183522b81dc19c98dc735ec2059801 Mon Sep 17 00:00:00 2001 From: ikhyeon Date: Fri, 5 Apr 2024 11:13:54 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20CI/CD=20=EA=B5=AC=EC=B6=95=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 233036a..6590d7b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -55,7 +55,6 @@ jobs: with: name: linkeepServer path: build/libs/ - - name: EC2 Deploy env: EC2_SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_PRIVATE_KEY }} @@ -72,7 +71,8 @@ jobs: # 인스턴스에서 JAR 파일 실행 ssh -i ec2_ssh_key -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} "pgrep java | xargs kill -9; nohup java -jar /home/${EC2_USER}/linkeep-server/linkeep-server-0.0.1-SNAPSHOT.jar > /home/${EC2_USER}/linkeep-server/log/app.log 2>&1 &" -# java -jar /home/${EC2_USER}/linkeep-server/linkeepServer-0.0.1-SNAPSHOT.jar EOF + +# java -jar /home/${EC2_USER}/linkeep-server/linkeepServer-0.0.1-SNAPSHOT.jar # # EC2 인스턴스에서 배포 스크립트 실행 # ssh -i ec2_ssh_key -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} "cd /home/${EC2_USER}/linkeep-server && ./deploy_script.sh" \ No newline at end of file