Leon Bogaert wrote:
> Hi all,
>
> I'm using capistrano to deploy my application. But I have to copy the
> images/* directory manually each time to the current release. Is there a
> way to make capistrano do this for me?
>
> Something like:
> run "cp -r ~/#{previous_release}/public/images/users/*
> ~/current/public/images/users/
>
> Thanks in advance!
>   
The usual way of solving this (for images generated by the app, rather 
than ones for the layout, which may be in the svn repository) is to put 
the images in the shared folder with a symlink to them, and then add 
have capistrano add the symlink after updating the code. I also do the 
same for fragment cach files.

Something like:
  run <<-EOF
    cd #{release_path} &&
    ln -s #{shared_path}/photos #{release_path}/public/photos
  EOF

Hope this helps,
Chris

-- 
----------------------------
Autopendium :: Stuff about old cars 
http://autopendium.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to