2012-07-15 138 views
1

我刚刚设置了我的heroku账户。 我在我的应用程序的根目录下..运行git push heroku master的错误

所以我跑

heroku login 
## give my credentials 
heroku create --stack cedar 
heroku keys:add 
git push heroku master 

然后我得到的错误:

ssh: Could not resolve hostname heroku: Name or service not known 
fatal: The remote end hung up unexpectedly 

回答

2

也许Heroku的远程Git地址以某种方式打破。

您可以首先尝试通过执行host heroku.comssh [email protected] -T直接访问Heroku,并查看收益率。像这样:Getting error while trying to push to Heroku

随着host heroku.com你应该得到的东西,如:

$ host heroku.com 
heroku.com has address 50.19.85.132 
heroku.com has address 50.19.85.154 
heroku.com has address 50.19.85.156 
heroku.com mail is handled by 10 aspmx2.googlemail.com. 
heroku.com mail is handled by 10 aspmx3.googlemail.com. 
heroku.com mail is handled by 10 aspmx4.googlemail.com. 
heroku.com mail is handled by 10 aspmx5.googlemail.com. 
heroku.com mail is handled by 10 alt1.aspmx.l.google.com. 
heroku.com mail is handled by 10 alt2.aspmx.l.google.com. 
heroku.com mail is handled by 10 aspmx.l.google.com. 

然后尝试修复你的.git/config文件中,有:

[email protected]:your_app.git 

这样的:Can't push to existing live heroku app on Cedar Stack

如果这两者不起作用,那么可能会更复杂一些。