2013-12-13 131 views
0

我知道这是一个常见的情况,但我搜索谷歌/ stackoverflow和解决方案都不适合。我有这个RoR应用程序,我试图推向heroku。首先,我创建了gentle-savannah-1528(测功机?),我试图git push heroku master,但后来我得到这个错误:推到Heroku错误

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$ 

我已经尝试了这么多soluctions但没有工作。有人可以帮我节省一些时间。我不能再花时间去试图找出如何推动Heroku。

我已经做了:

+0

命令'git remote -v'的输出是什么? – OneChillDude

回答

5

听起来像是你没有创建remoteHeroku

these instructions,确保你已经完成:

heroku git:remote -a gentle-savannah-1528

然后尝试:

git push heroku master

+0

好笑的是我已经做到了。请检查我的主帖的编辑。 – Emanuel

+0

'git remote -v'的输出是什么? – CDub

+0

而你在本地机器上的git存储库中,是吗? – CDub

0

错误说«请确保您有正确的访问权限»。您可能需要将您的公钥上传到Heroku。只需在您的终端类型是:

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

This page on the Heroku website介绍如何创建一个,如果你没有一个。