I have Rails 3.1 app that I’m currently hosting on Heroku. My problem is that my slug size is a staggering 58.9MB. How would you suggest that I go about determining why this slug is so big and which gems/files are the biggest contributor to this?
Share
The article Slug Compilation contains several interesting details about debugging your slug size.
To reduce the slug size, you might want to:
.slugignorefile to ignore test data, sources or design filesBUNDLE_WITHOUTvariable to ignore all the bundle groups except the current environment. This is the default config for new apps, but if you created your app several months ago the variable doesn’t exist and you are bundling all the gems for all environments on every deploy