无法从codeship部署到heroku

时间:2017-08-15 13:15:42

标签: codeship

我们有一位顾问配置我们的CI,但自从他离开后,我们在尝试部署时遇到以下错误:

Warning: Permanently added 'heroku.com,40.19.75.141' (RSA) to the list of known hosts.

!  Your account pedro@someemail.com does not have access to mysascards-staging.
!  
!  SSH Key Fingerprint: 41:fc:8a:39:fb:ed:eb:a6:69:a5:1b:ff:35:84:41:2f

fatal: Could not read from remote repository.

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

如果我添加" pedro@someemail.com"到heroku,部署工作正常。

如何从代码配置中删除对此帐户的依赖?

2 个答案:

答案 0 :(得分:1)

为了使用Codeship部署您的应用,您需要提供Heroku帐户中的Heroku API密钥。

您可以在此处访问Heroku API密钥 -  https://dashboard.heroku.com/account

获得API密钥后,可以使用以下步骤更改部署配置:

  1. 导航到您的项目
  2. 点击Project Settings
  3. 点击Deploy
  4. 将API密钥复制/粘贴到Heroku API Key
  5. 确保Heroku用户的API密钥可以访问应用mysascards-staging

    如果项目已转移(如您所见),则很可能需要重新创建分配给项目的SSH密钥。

    您可以通过提交帮助票证来重新创建SSH密钥,并将密钥添加到Heroku和SCM。

    请告诉我这是否有帮助!

答案 1 :(得分:0)

为了澄清上面的答案 - 由于帐户更改了所有权,因此有必要在代码行上生成新的SSH密钥。

然后需要将此密钥添加到远程GIT仓库(在我的情况下为bitbucket)和Heroku中。在这两种情况下,都可以直接在站点上进行(不需要命令行)。

相关问题