Skip to content

Commit

Permalink
Edit CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
RobyYasirAmri committed Jun 14, 2024
1 parent 8b693ac commit b804642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
SERVER_IP: ${{ secrets.PROD_SERVER_IP }}
SERVER_USERNAME: ${{ secrets.PROD_USERNAME}}
run: |
ssh $SERVER_USERNAME@$SERVER_IP 'cd ~/prod-momee && git pull && npm install && npx prisma migrate deploy && npm run build && pm2 restart prod-momee && pm2 describe prod-momee'
ssh $SERVER_USERNAME@$SERVER_IP 'export NVM_DIR="$HOME/.nvm" && source "$NVM_DIR/nvm.sh" && nvm use v20.14.0 && cd ~/prod-momee && git pull && npm install && npx prisma migrate deploy && npm run build && pm2 restart prod-momee && pm2 describe prod-momee'

0 comments on commit b804642

Please sign in to comment.