[英]How do I uninstall this buildpack in Heroku?
我幾天前在我的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呢?
在當前版本的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
嘗試:
heroku config:unset BUILDPACK_URL
運行heroku config:unset
和heroku buildpacks:remove
對我不起作用。 但是,只需運行heroku buildpacks:clear
就可以將所有內容恢復到默認狀態。 然后,在下一個git push heroku
,動態添加相應的buildpack。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.