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 21, 2024
1 parent 954d2b5 commit 6ea4c0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,5 @@ jobs:
- name: Connect to EC2 and Run Commands
run: |
ssh -i ~/ec2-key.pem ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF'
cd /path/to/your/app
git pull origin main
npm install
pm2 restart all
echo "Connected to EC2"
EOF

0 comments on commit 6ea4c0d

Please sign in to comment.