diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-10-21 19:15:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 19:15:23 +0200 |
| commit | 01333b417f6b9b5c1ccda8b63e525dc9fd094b41 (patch) | |
| tree | d0566fe67709e08440757db365ee884aa3e6ac74 /.github | |
| parent | 7af2df10d7d05fbbf7db1505868b923f0baa0624 (diff) | |
Actualizar deploy.yml
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 10 |
1 files 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 |
