10 lines
224 B
Bash
Executable File
10 lines
224 B
Bash
Executable File
#! /usr/bin/bash
|
||
|
||
echo "Deploying..."
|
||
|
||
git push
|
||
# 连接ssh服务器:tencent,进入特定目录,执行指令
|
||
ssh tencent "cd /home/ubuntu/kds_project && git pull && sudo systemctl restart kds"
|
||
|
||
echo "Deploy finished!"
|