fix: update deployment scripts to use dynamic DEPLOY_PATH for backend and frontend

This commit is contained in:
2025-06-09 16:44:25 -03:00
parent 125c6cf269
commit 953483ee15
3 changed files with 5 additions and 3 deletions

View File

@@ -5,8 +5,6 @@ on:
branches:
- main
jobs:
deploy:
runs-on: website-deploy-runner
@@ -66,6 +64,8 @@ jobs:
rsync -a --delete --exclude 'frontend/.next/cache/' --exclude '.git/' ./ /var/www/website.joaoloureiro.dev.br/
- name: Restart Applications with PM2
env:
DEPLOY_PATH: ${{ vars.DEPLOY_PATH }}
run: |
echo "Restarting applications with PM2..."
pm2 startOrRestart backend/ecosystem.config.js --update-env