推动Heroku错误

时间:2013-12-13 19:08:02

标签: ruby-on-rails git heroku

我知道这是一个常见的情况,但我搜索了google / stackoverflow,但没有一个解决方案适合。我有这个RoR应用程序,我正在尝试推送到heroku。首先我创建了gentle-savannah-1528(dyno?),我正在尝试git push heroku master,但后来我收到了这个错误:

emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

我尝试了很多解决方案,但都没有效果。有人可以帮我节省一些时间。我不能再花时间试图弄清楚如何推向Heroku。

我已经做过:

emmanuels-imac:kal siaW$ heroku git:remote -a gentle-savannah-1528
emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

2 个答案:

答案 0 :(得分:5)

听起来您没有为remote创建Heroku

关注these instructions,请确保您已完成:

heroku git:remote -a gentle-savannah-1528

然后尝试:

git push heroku master

答案 1 :(得分:0)

错误显示«请确保您拥有正确的访问权限»。您可能需要将公钥上传到Heroku。只需在您的终端中输入:

heroku keys:add ~/.ssh/id_rsa.pub

This page on the Heroku website解释了如果没有的话,如何创建一个。

相关问题