Heroku创建:无法从远程存储库读取

时间:2013-10-30 08:35:42

标签: ruby-on-rails heroku github

尝试将我的第一个Rails应用程序部署到Heroku。

所有应用代码都在这里: https://github.com/donpinkus/first_app

正在运行heroku create会出现此错误:

donaldmbp15:first_app donald$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
Connection closed by 50.19.85.132
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
donaldmbp15:first_app donald$ 

这听起来像是一线,Heroku或Github没有访问权限。我从我当地的git repo推送到Github,所以我排除了Github作为错误的来源。离开Heroku,或我的本地机器。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

首先按照

生成RSA密钥
bash: ssh-keygen -t rsa

将您的密钥添加到heroku

bash: heroku keys:add

了解更多https://devcenter.heroku.com/articles/keys