尝试推送到 Heroku 时出错 [英] Getting error while trying to push to Heroku
本文介绍了尝试推送到 Heroku 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我输入git push heroku master"时,我收到一条错误消息:
When I type in "git push heroku master" I get an error that says:
ssh: 无法解析主机名 heroku.com: nodename 或 servname 提供,或未知
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.
推荐答案
尝试从命令行直接 ssh'ing 到 heroku
try ssh'ing directly to heroku from your command line
ssh git@heroku.com -T
如果您没有收到回复
! 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屋!
查看全文