概要
Herokuで通常のbuildpackに加え、customのbuildpackを加えたい時があると思います。
その時のやり方です。
やり方
heroku buildpacks:add URL_TO_THE_REPO
- 例:
heroku buildpacks:add https://github.com/elishaterada/heroku-google-application-credentials-buildpack.git
- その後再ビルド
参考
https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app#adding-a-buildpack
https://elements.heroku.com/buildpacks/elishaterada/heroku-google-application-credentials-buildpack
https://stackoverflow.com/questions/58499435/create-json-file-out-of-env-credentials-to-authenticate-google-cloud-on-heroku