【问题标题】:fatal error on git push heroku mastergit push heroku master 上的致命错误
【发布时间】:2014-10-26 14:12:42
【问题描述】:

我在尝试在 Heroku 上部署我的 rails 4 项目时遇到错误。 每当我尝试git push Heroku master 命令时,我都会收到此错误,

C:\Sites\projects\eventstream>git push heroku master
ssh: heroku.com: no address associated with name
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我尝试检查是否存在拼写错误,

C:\Sites\projects\eventstream>git remote -v
heroku  git@heroku.com:boiling-river-3096.git (fetch)
heroku  git@heroku.com:boiling-river-3096.git (push)
origin  git@github.com:nileshlg2003/eventstream.git (fetch)
origin  git@github.com:nileshlg2003/eventstream.git (push)

heroku.com 上也一样 我不知道如何解决它,任何帮助将不胜感激。

【问题讨论】:

  • 你完成了吗heroku keys:add
  • 是的,我已经添加了密钥

标签: ruby-on-rails git heroku ssh


【解决方案1】:

请试试这个

首先你检查你是否正确地创建了heroku

heroku create boiling-river-309

然后

git remote set-url heroku git@heroku.com:boiling-river-3096.git

更多信息请关注此

https://devcenter.heroku.com/articles/git

【讨论】:

  • 感谢您的建议,我试过了,但结果是一样的,'C:\Sites\projects\eventstream>heroku create rolling-river-309 Creating rolling-river-309... 完成,堆栈是雪松boiling-river-309.herokuapp.com | git@heroku.com:boiling-river-309.git Git 远程 heroku 添加 C:\Sites\projects\eventstream>git remote set-url heroku git@heroku.com:boiling-river-3096.git C:\Sites \projects\eventstream>git push heroku master ssh:heroku.com:没有与名称关联的地址致命:无法从远程存储库读取。请确保您拥有正确的访问权限并且存储库存在。'
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-01
  • 2013-02-03
  • 2016-12-26
  • 1970-01-01
  • 2016-02-19
  • 2014-02-01
相关资源
最近更新 更多