Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zzawang authored May 11, 2024
1 parent 84c982c commit 2efb52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Transfer JAR to EC2 (Root 계정 사용 시)
run: |
scp -o StrictHostKeyChecking=no root@${{ secrets.EC2_HOST }}:/root/spring-boot-app.jar
scp -o StrictHostKeyChecking=no ubuntu@${{ secrets.EC2_HOST }}:/ubuntu/spring-boot-app.jar
- name: Deploy on EC2 (Root 계정 사용 시)
run: |
Expand All @@ -60,5 +60,5 @@ jobs:
# Start new application
export DB_USERNAME=${{ secrets.DB_USERNAME }}
export DB_PASSWORD=${{ secrets.DB_PASSWORD }}
nohup java -jar /root/spring-boot-app.jar > /dev/null 2>&1 &
nohup java -jar /ubuntu/spring-boot-app.jar > /dev/null 2>&1 &
EOF

0 comments on commit 2efb52e

Please sign in to comment.