简体   繁体   中英

Why use a buildpack on heroku?

I have run across more and more references to buildpacks for heroku apps. Other then needed a buildpack that is not support by heroku, why define this parameter in the app creation? I have see references to speed increases for NPM using caching. Some context would help.

If you are running one of Heroku's supported languages, and not encountering any bugs, than I certainly wouldn't bother with a custom buildpack. But, if either of those are not true, a buildpack gives you the tools to fix the situation yourself. More info here: https://devcenter.heroku.com/articles/buildpacks

I build Ruby apps and got fed up of have to run rake db:migrate whenever I deploy a development application to Heroku so I tweaked the standard Ruby buildpack to add in this step and use it when I deploy my applications. I you have something that you typically perform 'around' a deployment then it's something that suitable for incorporating into a buildpack.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM