Heroku deleting files upon git push?

I have a media folder that stores all my uploaded images during development and I’m pushing my django(1.5.1) project to a dev server on heroku. Inside the media folder I have

    # cache and images were commited before .gitignored was added
    cache/ # store thumbnails
    images/ # store images

the .gitignore has

  • Version track, automate DB schema changes with django
  • Django - syncdb causes error: “DatabaseError: no such table: django_site”
  • Correct way to update live django web application
  • AWS - 'Failed to get bucket name' when doing git aws.push
  • Setting up the environment for django development and deployment(nginx/gunicorn/git/south/fabric)
  • create a git repo for project skeleton
  • *

    The problem is whenever I git push to heroku, all my testing uploads are wiped out by git. Is there a way to deal with this?

  • Android source code and repo - What exactly is happening when getting code
  • Comparing the pros and cons of Bitbucket to Github
  • Using Git with shared hosting plan
  • Bash shell script error sh: '
  • Is it still possible to restore deleted untracked files in git?
  • deriving version numbers from a git repository
  • One Solution collect form web for “Heroku deleting files upon git push?”

    This isn’t an issue with Git, but rather with Heroku. Heroku’s file system is ephemeral, and is reset between deploys. Use a service like Amazon S3 to store uploaded files.

    Git Baby is a git and github fan, let's start git clone.