当我尝试在 Heroku 上进行暂存时,出现以下错误。我不明白为什么。
$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 [email protected] /cdn-cgi/l/email-protection:pure-reef-7664.git
! [remote rejected] staging -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected] /cdn-cgi/l/email-protection: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 [email protected] /cdn-cgi/l/email-protection:pure-reef-7664.git
! [remote rejected] staging -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected] /cdn-cgi/l/email-protection:pure-reef-7664.git'
看来您已经通过调用“自定义构建包”创建了您的应用程序heroku create myapp --buildpack http://...
或者通过设置配置变量BUILDPACK_URL
,并且您提供的 URL 不正确。
确保您有有效的 URL 并调用heroku config:set BUILDPACK_URL=https://<valid url>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)