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 13ea2b6 commit d8b85be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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: "/"
source: "build/libs/meevote-0.0.1-SNAPSHOT.war"
target: "/home/ubuntu"

- name: SSH into EC2 and deploy
uses: appleboy/ssh-action@master
Expand All @@ -54,5 +54,5 @@ jobs:
key: ${{ secrets.EC2_KEY }}
port: ${{ secrets.EC2_SSH_PORT }}
script: |
cd /home/ubuntu
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 d8b85be

Please sign in to comment.