Skip to content

Commit

Permalink
Deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
basshamut committed Jun 24, 2024
1 parent d0c33e5 commit 165c151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
mkdir -p /var/www/html/virtual-dojo/backend
# Copiar el build del frontend al VPS
rsync -avz --delete ./frontend/dist/ $SSH_USERNAME@$SSH_HOST:/var/www/html/virtual-dojo/frontend
rsync -avz --delete ./frontend/dist/ $USERNAME@$HOST:/var/www/html/virtual-dojo/frontend
# Copiar el backend al VPS
rsync -avz --delete ./backend/ $SSH_USERNAME@$SSH_HOST:/var/www/html/virtual-dojo/backend
rsync -avz --delete ./backend/ $USERNAME@$HOST:/var/www/html/virtual-dojo/backend
# Conectar al VPS y reiniciar el backend
ssh $SSH_USERNAME@$SSH_HOST << 'EOF'
ssh $USERNAME@$HOST << 'EOF'
cd /var/www/html/virtual-dojo/backend
npm install --only=prod
pm2 restart all || pm2 start server.js --name virtual-dojo
Expand Down

0 comments on commit 165c151

Please sign in to comment.