mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
TTY option for SSH
When using commands requiring a TTY (such as Rails console), this script won’t work. So enabling a TTY resolves the issue.
This commit is contained in:
@@ -94,7 +94,7 @@ if [[ ! -z $DOKKU_HOST ]]; then
|
||||
fi
|
||||
|
||||
if [[ -z "$donotshift" ]]; then
|
||||
ssh "dokku@$DOKKU_HOST" "$@"
|
||||
ssh -t "dokku@$DOKKU_HOST" "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
@@ -116,7 +116,7 @@ if [[ ! -z $DOKKU_HOST ]]; then
|
||||
fi
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
ssh "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}"
|
||||
ssh -t "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}"
|
||||
}
|
||||
|
||||
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]]; then
|
||||
|
||||
Reference in New Issue
Block a user