From 138cc59be33942eba28d8a2c30bafb8ab04f0f12 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 20 Mar 2026 19:00:15 -0300 Subject: [PATCH] fix: Kill botui before scp deploy, remove cargo clean --- .forgejo/workflows/botui.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/botui.yaml b/.forgejo/workflows/botui.yaml index 9cf00d3..839a28b 100644 --- a/.forgejo/workflows/botui.yaml +++ b/.forgejo/workflows/botui.yaml @@ -54,7 +54,6 @@ jobs: - name: Clean old target run: | rm -rf workspace/target || true - cargo clean || true - name: Install system dependencies run: | @@ -94,6 +93,6 @@ jobs: - name: Deploy via SSH working-directory: workspace run: | - ssh -o StrictHostKeyChecking=no pragmatismo-system "systemctl stop ui.service || true" + ssh -o StrictHostKeyChecking=no pragmatismo-system "pkill -f /opt/gbo/bin/botui || true; sleep 2" scp -o StrictHostKeyChecking=no target/release/botui pragmatismo-system:/opt/gbo/bin/botui - ssh -o StrictHostKeyChecking=no pragmatismo-system "chmod +x /opt/gbo/bin/botui && systemctl start ui.service" + ssh -o StrictHostKeyChecking=no pragmatismo-system "chmod +x /opt/gbo/bin/botui && cd /opt/gbo/bin && nohup sudo -u gbuser ./botui --noconsole >> /opt/gbo/logs/botui.log 2>&1 &"