Skip to content

Commit

Permalink
fix :: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Oct 29, 2024
1 parent dc595a7 commit 69ff169
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ jobs:
port: ${{ secrets.PORT }}
source: ".next/*"
target: "/var/www/dear"

- name: Reload PM2 for zero-downtime deployment
run: |
ssh -o StrictHostKeyChecking=no ec2-user@${{ secrets.HOST }} "
cd /var/www/dear &&
pm2 start yarn --name dear-app -- start &&
pm2 reload dear-app
"

0 comments on commit 69ff169

Please sign in to comment.