fix: correct systemd service name in CI workflow
All checks were successful
BotUI CI/CD / build (push) Successful in 43s
All checks were successful
BotUI CI/CD / build (push) Successful in 43s
The workflow was trying to stop/start 'botui.service' but the actual service name is 'ui.service'. Updated all references to use the correct service name.
This commit is contained in:
parent
b87feb3d21
commit
87fcb02b60
1 changed files with 3 additions and 3 deletions
|
|
@ -101,18 +101,18 @@ jobs:
|
|||
echo "Step 2: Backing up old binary..."
|
||||
ssh $SSH_ARGS system "cp /opt/gbo/bin/botui /tmp/botui.bak"
|
||||
echo "Step 3: Stopping botui service..."
|
||||
ssh $SSH_ARGS system "sudo systemctl stop botui || true"
|
||||
ssh $SSH_ARGS system "sudo systemctl stop ui || true"
|
||||
echo "Step 4: Transferring new binary..."
|
||||
tar cf - -C /opt/gbo/data/botui/target/debug botui | gzip -1 | ssh $SSH_ARGS system "gzip -d | tar xf - -C /opt/gbo/bin && chmod +x /opt/gbo/bin/botui && chown gbuser:gbuser /opt/gbo/bin/botui && echo 'Transfer complete'"
|
||||
echo "Step 5: Starting botui service..."
|
||||
ssh $SSH_ARGS system "sudo systemctl start botui && echo 'BotUI started'"
|
||||
ssh $SSH_ARGS system "sudo systemctl start ui && echo 'BotUI started'"
|
||||
echo "=== Deploy completed ==="
|
||||
|
||||
- name: Verify botui started
|
||||
run: |
|
||||
sleep 15
|
||||
SSH_ARGS="-i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=5 -o ServerAliveInterval=5 -o ServerAliveCountMax=2 -o BatchMode=yes"
|
||||
ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: botui is running' || echo 'WARNING: botui may still be starting'"
|
||||
ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: ui is running' || echo 'WARNING: ui may still be starting'"
|
||||
|
||||
- name: Save deploy log
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue