如何在Heroku中卸载此buildpack?

时间:2014-05-01 12:12:43

标签: php heroku buildpack

我几天前在我的Heroku应用程序上安装了heroku-buildpack-php-tyler,这一切似乎都很好。我通过运行以下命令安装它:

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_URL = git://github.com/iphoting/heroku-buildpack-php-tyler.git并重新启动hnf-heroku ...失败

     

!没找到资源`

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

3 个答案:

答案 0 :(得分:25)

在当前版本的heroku(撰写本文时为v3.1.0),您可以使用heroku buildpacks:remove [BUILDPACK_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

答案 1 :(得分:12)

尝试:

heroku config:unset BUILDPACK_URL

答案 2 :(得分:2)

正在运行heroku config:unsetheroku buildpacks:remove对我不起作用。但是,只需运行heroku buildpacks:clear就可以将所有内容恢复到默认状态。然后,在下一个git push heroku上,即时添加相应的buildpack。

相关问题