Files
kds/deploy.sh
2025-09-30 15:04:13 +08:00

10 lines
224 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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