I've already spent half the day trying to debug a Heroku error where I can't push code to my staging server because of a slug compilation error:
Compiled slug size: 320.5MB is too large (max is 300MB).
I've moved all assets to AWS3 and created a .slugignore file with the following information:
*.psd
*.pdf
test
spec
features
doc
public
What other strategies can I use? The strangest thing is that, as far as I know, the code is the same as the production server, and I don't get any errors with pushing to the production server.