Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.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
Ruby on rails 我如何推送到Heroku或获取信息/状态;挂断“;还是没有回应?_Ruby On Rails_Git_Heroku - Fatal编程技术网

Ruby on rails 我如何推送到Heroku或获取信息/状态;挂断“;还是没有回应?

Ruby on rails 我如何推送到Heroku或获取信息/状态;挂断“;还是没有回应?,ruby-on-rails,git,heroku,Ruby On Rails,Git,Heroku,尝试将更新的应用程序推送到Heroku时出错(可能与以下内容相同): 我无法连接到API URL > heroku info ! Unable to connect to api.heroku.com 我也不能获得身份 > heroku status C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': A connection attempt failed because the connected par

尝试将更新的应用程序推送到Heroku时出错(可能与以下内容相同):

我无法连接到API URL

> heroku info
 !    Unable to connect to api.heroku.com
我也不能获得身份

> heroku status
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': 
A connection attempt failed because the connected party did 
not properly respond after a period of time, or established 
connection failed because connected host has failed to resp
ond. - connect(2) Errno::ETIMEDOUT)

今天在两个不同的场合都犯了这个错误。 一次在咖啡馆使用WIFI。可能是端口22阻塞,但未经确认。 第二次发生在家里,当时在办公室有VPN连接。可能是因为某种防火墙规则。断开VPN连接后,它现在可以正常工作。 结论是,这是一个网络问题

> heroku status
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:644:in `initialize': 
A connection attempt failed because the connected party did 
not properly respond after a period of time, or established 
connection failed because connected host has failed to resp
ond. - connect(2) Errno::ETIMEDOUT)