Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 4 + Github + Heroku: Large file storage

I have a Rails app and I perform version control with github. My app became too large and git-lfs was recommended to hold my images. Now when I push to Heroku, my files will not push. How do I get around this?

like image 760
Jeremy Thomas Avatar asked Feb 15 '26 11:02

Jeremy Thomas


1 Answers

Heroku specifically states they do not support LFS. Here's an effective workaround suggested on the git-lfs repo:

Try removing the .git/hooks/pre-push hook. However, if you keep using Git LFS, it'll re-install that hook automatically.

You could rm that file in a deploy script to make sure it happens automatically.

like image 80
Kevin Cooper Avatar answered Feb 17 '26 01:02

Kevin Cooper