Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dtd1614 authored May 14, 2024
1 parent 8aabeba commit 13ea2b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_KEY }}
port: ${{ secrets.EC2_SSH_PORT }}
source: "build/libs/meevote-0.0.1-SNAPSHOT.war"
target: "/home/ubuntu/"
source: "./build/libs/meevote-0.0.1-SNAPSHOT.war"
target: "/"

- name: SSH into EC2 and deploy
uses: appleboy/ssh-action@master
Expand All @@ -54,6 +54,5 @@ jobs:
key: ${{ secrets.EC2_KEY }}
port: ${{ secrets.EC2_SSH_PORT }}
script: |
sudo pkill -f ".war"
cd /home/ubuntu
sudo nohup java -jar -Dspring.profiles.active=prod -Duser.timezone="Asia/Seoul" meevote-0.0.1-SNAPSHOT.war &

0 comments on commit 13ea2b6

Please sign in to comment.