Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Heroku: Reduce Slug Size With .slugignore

Heroku: Reduce Slug Size With .slugignore

Adding a .slugignore file to the root folder of the project will make Heroku to remove the files and folders referenced after we push code to Heroku and the buildpack runs.

What is the Slug?

A compressed copy of the application comprising all files in the git repo along with packages installed during deployment.

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment