fix: update deployment scripts to use dynamic DEPLOY_PATH for backend and frontend
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user