The previous_release variable will tell you the directory of your previous release. Note, though, that is generally very bad practice to store user uploads in your current release directory. Recommended practice is to create a directory under #{deploy_to}/shared (say, #{deploy_to}/shared/images) and then symlink that from your current version as an after hook on update_code. You can search the mailing list, this has come up fairly often and people have posted some working tasks to set this up for you.

- Jamis

On May 23, 2008, at 6:24 AM, macace wrote:


Is there a way to get the folder name on the last release so that I
can copy some images folder that only exist on the "online" version,
to the new release..?



--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to