fix: Kill botui before scp deploy, remove cargo clean
This commit is contained in:
parent
b2d320e767
commit
138cc59be3
1 changed files with 2 additions and 3 deletions
|
|
@ -54,7 +54,6 @@ jobs:
|
||||||
- name: Clean old target
|
- name: Clean old target
|
||||||
run: |
|
run: |
|
||||||
rm -rf workspace/target || true
|
rm -rf workspace/target || true
|
||||||
cargo clean || true
|
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -94,6 +93,6 @@ jobs:
|
||||||
- name: Deploy via SSH
|
- name: Deploy via SSH
|
||||||
working-directory: workspace
|
working-directory: workspace
|
||||||
run: |
|
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
|
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 &"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue