2012-08-05 40 views
2

我有一个git存储库,我想从单个回购 - 生产和舞台有2个heroku应用程序。对于生产应用程序,我是合作者(不是所有者)。为了举办舞会,我想成为主人。无法部署到heroku,因为指纹钥匙是未授权

我已经做了在命令行中执行以下操作:

heroku create app-staging-name 
git remote add staging git-repo-address-given 
git push staging master 

它给我的错误:

! Your key with fingerprint xx:xx:xx:xx:xx:xx is not authorized to access app-staging-name. fatal: The remote end hung up unexpectedly. 

我也有added a new SSH key to heroku。我该如何从同一个git仓库部署2个heroku应用程序,而不会发生指纹冲突?

回答

1

我不得不使用这些步骤清除heroku密钥,然后创建一个并添加它。

heroku keys:clear 
ssh-keygen -t rsa # put the new name as /Users/username/.ssh/id_rsa_appname 
heroku keys:add