【问题标题】:Heroku Push Rejected some references to some heroku app I don't haveHeroku Push 拒绝了一些对我没有的 Heroku 应用程序的引用
【发布时间】:2013-08-21 01:26:33
【问题描述】:

当我尝试推送到 Heroku 上的 staging 时,我遇到了以下错误。我不明白为什么。

$git push staging-heroku staging:master
Counting objects: 72, done.
Compressing objects: 100% (64/64), done.
Writing objects: 100% (72/72), 5.06 MiB | 837 KiB/s, done.
Total 72 (delta 27), reused 0 (delta 0)

-----> Fetching custom git buildpack... failed

 !     Push rejected, error fetching custom buildpack

To git@heroku.com:pure-reef-7664.git
 ! [remote rejected] staging -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:pure-reef-7664.git'
[ubuntu@ip-172-31-19-78:~/bitstarter]$git push staging-heroku staging:master
Counting objects: 72, done.
Compressing objects: 100% (64/64), done.
Writing objects: 100% (72/72), 5.06 MiB | 766 KiB/s, done.
Total 72 (delta 27), reused 0 (delta 0)

-----> Fetching custom git buildpack... failed

 !     Push rejected, error fetching custom buildpack

To git@heroku.com:pure-reef-7664.git
 ! [remote rejected] staging -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:pure-reef-7664.git'

【问题讨论】:

    标签: heroku deployment


    【解决方案1】:

    您似乎使用“自定义 buildpack”创建了您的应用,方法是调用 heroku create myapp --buildpack http://... 或设置配置变量 BUILDPACK_URL,而您提供的 URL 不正确。

    确保您有一个有效的 URL 并调用 heroku config:set BUILDPACK_URL=https://<valid url>

    【讨论】:

      【解决方案2】:

      如果您使用的是自定义 buildpack 并且以前可以使用,那么不幸的是,有时 Heroku 有时会“发生”这种情况(请参阅 answer here)。有时它会在下一次推送时通过,有时我不得不等待几个小时才能再次工作。向 Heroku 开一张支持票可能是个好主意,这样他们就知道有什么问题了。

      如果您不使用自定义构建包,请查看 Nitzan Shaked 的回答。

      更新:在我的例子中,buildpack 托管在 GitHub 上,Heroku 支持建议将 BUILDPACK_URL 配置变量更改为使用 HTTPS 而不是 HTTP,并且它有效。

      【讨论】:

        【解决方案3】:

        如果您在 github 上使用自定义 buildpack,请确保您的存储库是公开的。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2013-03-08
          • 2013-02-03
          • 1970-01-01
          • 2014-06-07
          • 2019-10-25
          • 2013-05-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多