Large Heroku Needle Size

I have a Rails 3.1 application that I am currently hosting on Heroku. My problem is that my mucus size is a staggering 58.9 MB. How would you advise me to determine why this slug is so large and which gems / files are the largest source of this?

+4
source share
2 answers

The Slug Compilation article provides some interesting information about debugging your bullet size.

To reduce the size of the bullet, you can:

  • use the .slugignore file to ignore test data, sources, or design files.
  • make sure to set the BUNDLE_WITHOUT variable to ignore all package groups except the current environment. This is the standard configuration for new applications, but if you created your application a few months ago, this variable does not exist, and you combine all the gems for all environments in each deployment.
+6
source

You can try using the released gems instead of directly linking to git repositories using the git => option.

0
source

All Articles