Remove files that are specified in a .slugcleanup file.
$ heroku buildpacks:add https://github.com/BOOKATIGER/heroku-buildpack-slug-cleanup $ heroku config:set NODE_APP="my_app"
This buildpack will look for
.slugcleanup in the root folder and in the folder pointed by the
NODE_APP environment variable (if provided)
The purpose is to reduce Your slugsize in case you have multiple projects in your repository by keeping only the files you need in your build.
You can run tests for this repository by using docker or docker-compose:
# docker-compose $ docker-compose up # docker $ docker build -t bookatiger/heroku-buildpack-slug-cleanup . $ docker run bookatiger/heroku-buildpack-slug-cleanup
Or by using heroku directly by following the instructions here
Copy the snippet above into CLI.