My fairly basic application allows users to upload avatars.
The application is deployed to Heroku with
$ git add .
$ git commit -m "description"
$ git checkout master
$ git merge my-cool-new-feature
$ git push heroku
The problem is, every time I push changes to Heroku, all files uploaded to Heroku are lost. I thought, the problem was that the folder/files were under version control, so I added the folder to .gitignore
# Ignore User generated files
/public/system/*
and removed the files from the repository.
$ git rm -rf --cached public/system
But the problem persists. Can you point me in the right direction?