Locally my application is 7MB without tests and logs, etc. The .git folder is 29 MB. I also have no gems / plugins in vendor folder. 95% of images sit on S3. However on committing to Heroku it shows
—–> Compiled slug size is 62.7MB
What is wrong? It happened?
To add more context my .gitignore file is .bundle, db/.sqlite3, config/database.yml, log/.log, tmp/, .idea, .redcar, .sass-cache/, multi_xml/, test/, doc/
Please advice
The compiled slug size includes all of your gems as well. If you’re on the Cedar stack, they’ve made some mistakes that will make your some gems with native extensions even bigger than they’re supposed to be.