fix: Kill botserver before scp deploy to prevent file lock
Some checks failed
BotServer CI / build (push) Failing after 11m22s
Some checks failed
BotServer CI / build (push) Failing after 11m22s
This commit is contained in:
parent
705d925947
commit
6e54799973
1 changed files with 2 additions and 2 deletions
|
|
@ -66,6 +66,6 @@ jobs:
|
|||
- name: Deploy via SSH
|
||||
working-directory: workspace
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no pragmatismo-system "systemctl stop system.service || true"
|
||||
ssh -o StrictHostKeyChecking=no pragmatismo-system "pkill -f /opt/gbo/bin/botserver || true; sleep 2"
|
||||
scp -o StrictHostKeyChecking=no target/debug/botserver pragmatismo-system:/opt/gbo/bin/botserver
|
||||
ssh -o StrictHostKeyChecking=no pragmatismo-system "chmod +x /opt/gbo/bin/botserver && systemctl start system.service"
|
||||
ssh -o StrictHostKeyChecking=no pragmatismo-system "chmod +x /opt/gbo/bin/botserver && cd /opt/gbo/bin && nohup sudo -u gbuser ./botserver --noconsole >> /opt/gbo/logs/error.log 2>&1 &"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue