After assets are precompiled, they are moved to the public/assets
directory. app/assets/
and node_modules/
is not longer required, deleting this frees up space to get around the Heroku slug size limit
$ heroku buildpacks -a barkbox-dev
=== barkbox-dev Buildpack URLs
1. https://github.com/DataDog/heroku-buildpack-datadog.git
2. https://github.com/timshadel/heroku-buildpack-github-netrc.git
3. heroku/nodejs
4. heroku/ruby
Add this to the last step.
$ heroku buildpacks:add --index 5 https://github.com/barkbox/heroku-buildpack-slug-cleanup#v0.2 -a barkbox-dev
Buildpack added. Next release on barkbox-dev will use:
1. https://github.com/DataDog/heroku-buildpack-datadog.git
2. https://github.com/timshadel/heroku-buildpack-github-netrc.git
3. heroku/nodejs
4. heroku/ruby
5. https://github.com/barkbox/heroku-buildpack-slug-cleanup.git#v0.2