【问题标题】:Heroku Create: Could not read from remote repositoryHeroku Create:无法从远程存储库中读取
【发布时间】:2014-10-11 01:00:22
【问题描述】:

尝试将我的第一个 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,或者我的本地机器。有什么想法吗?

【问题讨论】:

  • 为什么不尝试从本地计算机推送?您只需要toolbelt.heroku.com - Heroku Toolbelt,就可以从本地机器推送 repo?
  • 您分享的错误不是来自heroku create。 git remote -v 显示什么? heroku 远程是否与来自 heroku info 的 git 存储库匹配?
  • @RickPeck - 我正在从本地机器推送 :)
  • @catsby - 这是来自git remote -v donaldmbp15:demo_app donald$ git remote -v origin github.com/donpinkus/demo_app.git (fetch) origin github.com/donpinkus/demo_app.git (push) donaldmbp15:demo_app donald$ 的输出
  • 这表明你没有heroku git 遥控器。建议您阅读以下内容:devcenter.heroku.com/articles/git

标签: ruby-on-rails heroku github


【解决方案1】:

首先按照以下方式生成RSA密钥

bash: ssh-keygen -t rsa

将你的密钥添加到 Heroku

bash: heroku keys:add

阅读更多https://devcenter.heroku.com/articles/keys

【讨论】:

    猜你喜欢
    • 2014-05-04
    • 2013-04-13
    • 2013-03-14
    • 2018-12-10
    • 2019-01-03
    • 2014-11-25
    • 2020-11-03
    • 2016-09-07
    • 2014-07-27
    相关资源
    最近更新 更多