Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Proxy 将heroku上的rails应用程序推到代理后时出现问题_Proxy_Heroku_Push - Fatal编程技术网

Proxy 将heroku上的rails应用程序推到代理后时出现问题

Proxy 将heroku上的rails应用程序推到代理后时出现问题,proxy,heroku,push,Proxy,Heroku,Push,我想在heroku云中推送我的rails应用程序。我的互联网在代理之后。 我已通过以下命令在git bash中设置了代理: $export http\u代理=http://host:port 然后我尝试通过命令推送应用程序: $git推送heroku主机 但它给了我这样的错误: ssh:heroku.com:没有与名称关联的地址 致命:远程端意外挂起 然后我通过命令设置我的代理: $git config--全局http.proxy 但仍然得到同样的错误。 您能告诉我该怎么做吗?您的git存储库设

我想在heroku云中推送我的rails应用程序。我的互联网在代理之后。 我已通过以下命令在git bash中设置了代理:

$export http\u代理=http://host:port

然后我尝试通过命令推送应用程序:

$git推送heroku主机

但它给了我这样的错误:

ssh:heroku.com:没有与名称关联的地址
致命:远程端意外挂起

然后我通过命令设置我的代理:

$git config--全局http.proxy

但仍然得到同样的错误。
您能告诉我该怎么做吗?

您的
git
存储库设置为使用
ssh
连接类型来推送或拉送到heroku或从heroku拉出。您需要配置
ssh
客户端,以了解如何协商http代理以到达外部世界。从
ssh\u配置(5)
手册页:

For example, the following directive would connect via an
HTTP proxy at 192.0.2.0:
            ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
我不知道您的http代理是否允许
ssh
通过,无论是否使用
ProxyCommand
指令,但它可能是一个很好的起点