4 ms·
When building container images, yes. However in heroku I'm not sure how to do this without custom buildpacks (e.g. https://elements.heroku.com/buildpacks/istrat
by rileytg 6y ago
When building container images, yes. However in heroku I'm not sure how to do this without custom buildpacks (e.g. https://elements.heroku.com/buildpacks/istrategylabs/heroku-buildpack-node-cleanup https://elements.heroku.com/buildpacks/istrategylabs/heroku-...). Custom buildpacks reduce the value add of heroku for my small team.
Ultimately my solution will likely be build the assets in CI and deliver via CDN or check into the repo on some release branch.
Edit: I intentionally omitted the gem sizes as that was a prior cost of using rails
- pistoriusp 6y agoI feel your pain, we also had this problem, and resorted to exactly the thing you've done. Personally I always felt that this was a shortcoming with Heroku's Buildpacks. Which seem unwilling to support modern rails.