fix(ci): use systemctl restart instead of killall
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
This commit is contained in:
parent
4bf3da36bb
commit
bf704c0f6e
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
echo "Step 2: Transferring binary..."
|
echo "Step 2: Transferring binary..."
|
||||||
timeout 60 tar cf - -C /opt/gbo/data/botserver/target/debug botserver | gzip -1 | timeout 60 ssh $SSH_ARGS system "gzip -d | tar xf - -C /opt/gbo/bin && chmod +x /opt/gbo/bin/botserver && chown gbuser:gbuser /opt/gbo/bin/botserver && echo 'Transfer complete'"
|
timeout 60 tar cf - -C /opt/gbo/data/botserver/target/debug botserver | gzip -1 | timeout 60 ssh $SSH_ARGS system "gzip -d | tar xf - -C /opt/gbo/bin && chmod +x /opt/gbo/bin/botserver && chown gbuser:gbuser /opt/gbo/bin/botserver && echo 'Transfer complete'"
|
||||||
echo "Step 3: Restarting botserver..."
|
echo "Step 3: Restarting botserver..."
|
||||||
timeout 30 ssh $SSH_ARGS system "killall botserver 2>/dev/null; sleep 2; cd /opt/gbo/bin && nohup ./botserver --noconsole > /opt/gbo/logs/stdout.log 2>&1 & disown; echo 'Botserver started'" || echo "Restart command timed out, trying anyway..."
|
timeout 30 ssh $SSH_ARGS system "systemctl restart botserver 2>/dev/null; sleep 2; cd /opt/gbo/bin && nohup ./botserver --noconsole > /opt/gbo/logs/stdout.log 2>&1 & disown; echo 'Botserver started'" || echo "Restart command timed out, trying anyway..."
|
||||||
echo "=== Deploy completed ==="
|
echo "=== Deploy completed ==="
|
||||||
|
|
||||||
- name: Verify botserver started
|
- name: Verify botserver started
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue