暂存

tmp
This commit is contained in:
2024-05-09 16:35:21 +08:00
parent 3afa0d81bb
commit bcc1b51006
27 changed files with 1526 additions and 0 deletions

21
deploy.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
make
rsync ./msw root@$1:/tmp/msw -rvPhz
echo "stoping remote services"
# ssh root@$1 systemctl disable --now prometheus-node-exporter
echo "syncing"
rsync ./resources root@$1:/tmp/ -rvPhz
echo killing remote services
ssh root@$1 pkill -f msw
ssh root@$1 tmux kill-session -t "msw"
echo starting remote services
ssh root@$1 "
tmux new-session -d -s "msw" /tmp/msw &&
tmux ls
"