2

我有一个 git 存储库,我想从单个存储库中获得 2 个 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.

我还向 heroku 添加了一个新的 SSH 密钥。如何在没有指纹冲突的情况下从同一个 git repo 部署 2 个 heroku 应用程序?

4

1 回答 1

1

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

heroku keys:clear
ssh-keygen -t rsa # put the new name as /Users/username/.ssh/id_rsa_appname
heroku keys:add
于 2012-08-13T11:23:19.760 回答