re-init
暂存 tmp
This commit is contained in:
21
deploy.sh
Executable file
21
deploy.sh
Executable 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
|
||||
"
|
||||
Reference in New Issue
Block a user