I have a python app built on oTree software which I am trying to upload onto and deploy from Heroku. However, I keep getting an error that my slug size is too big. It is around 40 M more that the 500 M that Heroku allows.
I have added a .gitignore. I have reset the repo with heroku repo:reset -a appname. I have looked online and this is what is mostly recommended in this case.
I was wondering what causes a large slug size. My app has a lot of media files (audio, video, image) that need to be uploaded. Can that cause the slug size to be too big? Even so the total size of the file of the app is less than 300 M.
I would appreciate any help. Thank you!