【发布时间】: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 -vdonaldmbp15: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$ 的输出 -
这表明你没有
herokugit 遥控器。建议您阅读以下内容:devcenter.heroku.com/articles/git
标签: ruby-on-rails heroku github