尝试推送到Heroku时出错 [英] Getting error while trying to push to Heroku

查看:110
本文介绍了尝试推送到Heroku时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



ssh:无法解析主机名heroku.com:提供的节点名或服务器名,或不知道

我在我的电脑上工作,我认为这个问题与代理/防火墙有关。有人知道在命令行中解决这个错误的方法吗?或者任何其他类型的修复?谢谢。

解决方案

在您的命令行中直接尝试ssh'ing到heroku

  ssh git@heroku.com -T 

if你没有得到回应

 !您只能通过git push和pull命令通过ssh访问Heroku。 

那么它就是连接问题或防火墙阻止您的请求。


When I type in "git push heroku master" I get an error that says:

ssh: Could not resolve hostname heroku.com: nodename nor servname provided, or not known

I am on my computer at work and I believe this problem has to do with proxies/firewall. Does anybody know of a way around this error in the command line? Or any other type of fix? Thanks.

解决方案

try ssh'ing directly to heroku from your command line

 ssh git@heroku.com -T

if you don't get a response

 !  You can only access Heroku by ssh via git push and pull commands.

then it's connectivety issue or a firewall in the way that's blocking your requests.

这篇关于尝试推送到Heroku时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆