2012-07-15 154 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

如果這兩者不起作用,那麼可能會更復雜一些。