gunshi-project-ss/deploy_dev.ps1

11 lines
306 B
PowerShell

$src="./target/gunshi-project-xyt-1.0-SNAPSHOT.jar"
$dst_dir="~/gunshiApp/tsg"
$dst_host="10.0.41.112"
$dst_port=22
$user="root"
$identity="deploy_rsa"
scp -i $identity -P $dst_port $src $user@${dst_host}:${dst_dir}
ssh -i $identity -p $dst_port $user@${dst_host} "cd ${dst_dir}; docker compose restart"