2013-06-25 132 views
1

我想在heroku上部署我的Rails应用程序。在Heroku上部署Railsapp

但在所有的事情上,它将不得不在最后一步失败。

我的Git是所有设置,我得到了一个工作git仓库,一个Heroku的帐户,安装heroku_toolbelt,我可以登录通过“的Heroku登录”

我也可以创建一个新的存储库“的Heroku打造”并获得我的网址路径和反馈“git remote heroku添加”。

但是,试图与“混帐推Heroku的大师”失败,结果下面的消息在推它在Heroku:

被需要
Permission denied (publickey). 
fatal: Could not read from remote repository. 

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

什么样的公共密钥的?我知道存在库,它在我的heroku帐户上:/

我希望你能帮助我!

+0

部署heroku代码时可能发生[Permission denied(publickey))的重复。致命的:远程端意外挂断](http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end) –

回答

1

您需要将您的公钥添加到Heroku中 - 假设您在〜/ .ssh文件夹中有一个公钥(通常称为id_rsa.pub)。如果没有与ssh-keygen

heroku keys:add 

生成一个应该进行排序的问题,你应该能够把你的应用程序。

+0

好吧,我修好了ssh-key问题,但现在我似乎无法推向正确的应用程序。 heroku试图推送到的存储库不再存在(我删除了它)。但是当创建一个新的时候,它仍然是指旧的。使用“git remote add second-heroku-app [email protected]:appname.git”没有帮助... –

+1

如果你已经完成了git remote add second-heroku-app,那么你的推送将会是'git push second -heroku-app master' –