From 01333b417f6b9b5c1ccda8b63e525dc9fd094b41 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Tue, 21 Oct 2025 19:15:23 +0200 Subject: Actualizar deploy.yml --- .github/workflows/deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b33db0b..af4867f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -95,11 +95,11 @@ jobs: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 ssh-keyscan -H ${{ secrets.TARGET_HOST }} >> ~/.ssh/known_hosts - - name: Deploy frontend - run: | - scp -r dist/frontend/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:${{ secrets.TARGET_PATH }}/ - name: Deploy backend run: | - ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "sudo /usr/bin/systemctl stop busurbano" + ssh -t ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "sudo /usr/bin/systemctl stop busurbano" scp -r dist/backend/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:/opt/ventasync/ - ssh ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "sudo /usr/bin/systemctl start busurbano" + ssh -t ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }} "sudo /usr/bin/systemctl start busurbano" + - name: Deploy frontend + run: | + scp -r dist/frontend/* ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}:${{ secrets.TARGET_PATH }}/ \ No newline at end of file -- cgit v1.3