Thanks for the replies.

I found in this Group a post about creating a link with (http://
groups.google.com/group/capistrano/browse_thread/thread/
2cc9630b28d0a8f0/a31939218707c73f?
lnk=gst&q=file_column#a31939218707c73f)
desc "Create symlinks for shared image upload directories"
task :after_symlink do
     run "mkdir -p #{release_path}/public/user_image"
     run "ln -nfs #{shared_path}/images/user_image/
#{release_path}/public/user_image/"
end

Although this only works when I remove the line
     run "mkdir -p #{release_path}/public/user_image"

So I only create the link and not the directory. Is this ok?

Thanks
Stijn




On 10 jul, 16:26, "Rafael G." <[EMAIL PROTECTED]> wrote:
> Don't copy uploads every time, store it in shared path and create a
> symlink every time.
>
> Tarscher escribió:
>
> > Hi all,
>
> > I use file_column for image upload and want to copy that directory
> > everytime I do a new deployment .
>
> > Can someone point me to documentation or tutorials on how to do this?
>
> > Thanks
> > Stijn
>
> --
> Rafael Garcia Ortega
>
>  rgo.vcf
> 1KDownloaden
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to