Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在Heroku中卸载此buildpack?_Php_Heroku_Buildpack - Fatal编程技术网

Php 如何在Heroku中卸载此buildpack?

Php 如何在Heroku中卸载此buildpack?,php,heroku,buildpack,Php,Heroku,Buildpack,几天前我安装了Heroku应用程序,看起来一切都很好。我通过运行以下命令安装了它: heroku config:set BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git heroku config:unset BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git 不过,我现在想删除它。我尝试使用以下命令: hero

几天前我安装了Heroku应用程序,看起来一切都很好。我通过运行以下命令安装了它:

heroku config:set BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
heroku config:unset BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
不过,我现在想删除它。我尝试使用以下命令:

heroku config:set BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
heroku config:unset BUILDPACK_URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git
但它返回以下错误消息:

取消设置BUILDPACK\u URL=git://github.com/iphoting/heroku-buildpack-php-tyler.git 重新启动hnf heroku。。。失败

!!找不到资源`

因为Heroku没有正式支持PHP,所以没有太多关于这方面的文档。那么如何卸载此buildpack?

试试:

heroku config:unset BUILDPACK_URL

在当前版本的
heroku
(撰写本文时为v3.1.0)中,您可以使用
heroku buildpacks:remove[BUILDPACK\u URL]

键入heroku buildpacks help列出可用的命令:

  buildpacks:add BUILDPACK_URL       #  add new app buildpack, inserting into list of buildpacks if neccessary
  buildpacks:clear                   #  clear all buildpacks set on the app
  buildpacks:remove [BUILDPACK_URL]  #  remove a buildpack set on the app
  buildpacks:set BUILDPACK_URL       #  set new app buildpack, overwriting into list of buildpacks if neccessary

运行
heroku config:unset
heroku buildpacks:remove
对我不起作用。然而,只要运行heroku buildpacks:clear即可将所有内容恢复到默认状态。然后,在下一个
git-push-heroku
,相应的buildpack会被动态添加。

嘿,谢谢,我已经从其他地方得到了答案,但这是可行的(对于那些来自谷歌的人来说,它基本上会将buildpack重置为默认状态)。不过谢谢你!:)
heroku buildpacks:remove BUILDPACK\u URL——app[app\u NAME]
是正确的方法。您的方法可能适用于某些情况,但不一定正确。在选择(甚至订购)构建包的过程中,有些情况需要稍微注意。