Just put an after_symlink task in your deployment that creates a
symlink from app_path/public/product/image/ to
/shared_path/product/image
Ross
On 9/16/06, B N <woodsman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> For now, I have corrected this with:
> task :new_deploy do
> deploy
> run "mkdir -p #{deploy_to}/shared/image"
> run "mkdir -p #{deploy_to}/current/public/product/"
> run "ln -sf #{deploy_to}/shared/image #{deploy_to}/current/public/
> product/image"
> end
>
>
> Is there a way to rename this task deploy and still be able to call
> the original deploy task?
>
> On Sep 16, 2006, at 12:57 PM,
woodsman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>
> > I have begun using file_column for the uploading of images and have
> > run
> > into a bit of a snag.
> >
> > file_column saves images out to app_path/public/product/image/
> >
> > Unfortunately, that is a per-deployment directory and running cap
> > deploy will leave you with an empty directory. How do people deal with
> > this at present? Modify file_column so it saves elsewhere? Modify
> > their
> > deployment script so it copies the images over?
> >
> > Thanks in advance.
> >
>
>
> >
>
--
Ross Riley
riley.ross-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---