#! /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!"