[chef] Migrating uploaded media between Django deployments


Chronological Thread 
  • From: Kevin Harvey < >
  • To:
  • Subject: [chef] Migrating uploaded media between Django deployments
  • Date: Wed, 23 Nov 2011 14:58:46 -0500

My Django deployment, based on OpsCode's Django Quickstart, uses the 'media' directory created inside the deployment by the 'status.rb' recipe as the directory to hold user upload files. This is fine, except that I get a new media directory in the new, 'current' deployment whenever I deploy new code. Ideally, I'd like to copy the contents of the original media folder over, keeping versioned copies of the media with deployments, say 5 deployments back.

Am I thinking about this the right way? Has anyone else done this? Any how-to's out there? I Googled around a bit and couldn't find anything. Thanks in advance!

--
Kevin Harvey
Web Developer
" target="_blank">




Archive powered by MHonArc 2.6.16.

§