Heroku Push拒绝了一些对我没有的heroku应用程序的引用 [英] Heroku Push Rejected some references to some heroku app I don't have

查看:246
本文介绍了Heroku Push拒绝了一些对我没有的heroku应用程序的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图推动Heroku上演时,我遇到了以下错误。我不明白为什么。

I've got the following errors when I tried to push to staging on Heroku. I don't understand why.

$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 回答此处)。有时它会在下一次推动下进行,其他时候我不得不等待几个小时才能再次工作。这可能是一个好主意,用Heroku打开一张支持票,所以他们知道一些东西被打了。

If you are using a custom buildpack and it's worked before, this is unfortunately something that "just happens" sometimes with Heroku (see the answer here). Sometimes it goes through on the next push, other times I've had to wait up to a couple hours for it to work again. It's probably a good idea to open a support ticket with Heroku so they know something is borked.

如果你不使用自定义的buildpack,看看Nitzan Shaked的

If you aren't using a custom buildpack, have a look at Nitzan Shaked's answer.

更新:在我的例子中,buildpack在GitHub上托管,Heroku Support建议将BUILDPACK_URL config var更改为使用HTTPS而不是HTTP,它的工作。

UPDATE: In my case, where the buildpack was hosted on GitHub, Heroku Support advised to change the BUILDPACK_URL config var to use HTTPS instead of HTTP and it worked.

这篇关于Heroku Push拒绝了一些对我没有的heroku应用程序的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆