ci: add Step 7 to restart botserver service after deploy
Some checks failed
BotServer CI/CD / build (push) Failing after 17s
Some checks failed
BotServer CI/CD / build (push) Failing after 17s
This commit is contained in:
parent
c041fe9cd3
commit
00e5a3a5ff
1 changed files with 2 additions and 0 deletions
|
|
@ -87,6 +87,8 @@ jobs:
|
|||
ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 system "ls -lh /opt/gbo/bin/botserver"
|
||||
echo "Step 6: Setting permissions..."
|
||||
ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 system "chmod +x /opt/gbo/bin/botserver && chown gbuser:gbuser /opt/gbo/bin/botserver"
|
||||
echo "Step 7: Restarting botserver service..."
|
||||
ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 system "pkill -f botserver || true; sleep 1; cd /opt/gbo/bin && sudo -u gbuser nohup ./botserver --noconsole > /opt/gbo/logs/botserver-output.log 2>&1 &"
|
||||
echo "=== Deploy completed ==="
|
||||
|
||||
- name: Verify botserver started
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue