无法将项目推送到heroku

时间:2013-04-16 01:02:04

标签: ruby-on-rails ruby heroku

我正在做Hartle Ruby on Rails教程,这是我第一次将项目推送到heroku,我正试图弄清楚出了什么问题。

$ heroku login
email
password
Could not find an existing public key 
Would you like to generate one? [y/n] <--- I hit enter which gave me..
Generating new SSH public key.
Uploading SSH public key /Users/myname/.ssh/id_rsa.pub... done
Authentication successful.

之后我转到下一个命令,heroku创建,因为我已经在我想要的目录中,“first_app”

$ heroku create
Creating immense-savannah-2464... done, stack is cedar
http://immense-savannah-2464.herokuapp.com/ | git@heroku.com:immense-savannah-2464.git  <--- this is not what Hartl gets in his tutorial so I don't know if this looks right or wrong.

之后我尝试将我的项目推送到heroku:

$ git push heroku master
The authenticity of host 'heroku.com (XX.XX.XX.XXX)' can't be established.
RSA key fingerprint is Xb:XX:Xe:XX:Xe:cX:XX:XX:XX:fX:XX:Xc:Xf:cX:XX:ad.
Are you sure you want to continue connecting (yes/no)? <--- I always hit "no" because I don't know if I should hit "yes." After I hit "no" it tells me that the host key verification failed!

知道我做错了什么吗?我被困 - 任何帮助都会非常感激!

1 个答案:

答案 0 :(得分:0)

您是否已经完成all the steps listed here?
您需要创建公钥/私钥对以将代码部署到Heroku。

该帖子将引导您完成所有步骤。

我找到了this answer that might help you。尝试将[remote“heroku”]中的项目名称更改为.git/config

中heroku给出的名称

更新

我刚才有同样的问题。我在yes询问时键入Are you sure you want to continue connecting (yes/no)?,然后仍然无法连接并返回fatal: The remote end hung up unexpectedly

然后我跑了ssh-keygen -t rsa,点击输入几次就可以了。

自从我将Rails文件夹复制到新计算机后出现此问题。其余的heroku命令工作,只推动没有。

相关问题