There's a lot of knowledge to be had about buildpacks. Start with reading the main docs:
- https://devcenter.heroku.com/articles/buildpacks
- https://devcenter.heroku.com/articles/buildpack-api
Set your scripts to fail quickly & loudly
bash inherently swallows errors thrown by commands. Use the following at the top of your compile script: