Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoung7623 authored Dec 23, 2024
1 parent 4a6d8d0 commit 0e6709d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ jobs:
EC2_DEPLOY_PATH: ${{ secrets.EC2_DEPLOY_PATH }}
run: |
ssh -i private_key.pem $EC2_USER@$EC2_HOST << 'EOF'
pkill -f 'java -jar $EC2_DEPLOY_PATH/app.jar' || true # 기존 애플리케이션 종료
nohup java -jar $EC2_DEPLOY_PATH/app.jar > app.log 2>&1 &
pkill -f 'java -jar app.jar' || true # 기존 애플리케이션 종료
nohup java -jar app.jar > app.log 2>&1 &
EOF

0 comments on commit 0e6709d

Please sign in to comment.