Fix control plane SSH deploy TTY
This commit is contained in:
parent
9f20dcae05
commit
f65698925e
|
|
@ -11,10 +11,10 @@ MODE=$1
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
"--ssh")
|
"--ssh")
|
||||||
echo "Deploying to VPS ($VPS_IP) via SSH..."
|
echo "Deploying to VPS ($VPS_IP) via SSH..."
|
||||||
ssh "$USER@$VPS_IP" "cd $REMOTE_REPO_PATH && git pull origin master && cd services/control-plane && bash deploy-local.sh"
|
ssh -t "$USER@$VPS_IP" "cd $REMOTE_REPO_PATH && git pull origin master && cd services/control-plane && bash deploy-local.sh"
|
||||||
;;
|
;;
|
||||||
"--print")
|
"--print")
|
||||||
echo "ssh $USER@$VPS_IP \"cd $REMOTE_REPO_PATH && git pull origin master && cd services/control-plane && bash deploy-local.sh\""
|
echo "ssh -t $USER@$VPS_IP \"cd $REMOTE_REPO_PATH && git pull origin master && cd services/control-plane && bash deploy-local.sh\""
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 [--ssh|--print]"
|
echo "Usage: $0 [--ssh|--print]"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue