Skip to content

Commit

Permalink
Update deploy-ovh.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme authored Jan 7, 2024
1 parent 713e46d commit d508403
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-ovh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,16 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: ".output/"
target: "/var/www/dibodev.com/html"
- name: 🚀 Install Dependencies and Restart Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /var/www/dibodev.com/html/.output
npm install
pm2 restart my-nuxt-app || pm2 start server.js --name my-nuxt-app

0 comments on commit d508403

Please sign in to comment.