nitsujweidmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Mar-14 19:30 UTC
attachment_fu and public_filename
Hey all , I''ve been using attachment_fu for a while now and I love it, but recently I''ve been expanding and I have a setup on 2 servers, the first one is the application server and the second is the picture host. So I just setup my public/pictures directory as a NFS to my second server so uploaded pictures get saved to the second server. The trouble I have is the public_filename method reads from domain.com/ pictures/ and I need it to read from pics.domain.com/pictures/. I have all the DNS routing setup already but whenever I try to modify the public_filename method it always prefixes with domain.com/ and I just can''t figure out how to override the whole domain it reads from. Any help you could provide me would be greatly appreciated. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
nitsujweidmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Mar-14 19:56 UTC
Re: attachment_fu and public_filename
Okay i fixed it, can''t believe it took me this long to figure out. When i altered public_filename i only didn''t prefix it with http:// i only did pics.domain.com. sticking the http:// in there works just like I need. On Mar 14, 1:30 pm, nitsujweidm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Hey all , I''ve been using attachment_fu for a while now and I love it, > but recently I''ve been expanding and I have a setup on 2 servers, the > first one is the application server and the second is the picture > host. So I just setup my public/pictures directory as a NFS to my > second server so uploaded pictures get saved to the second server. The > trouble I have is the public_filename method reads from domain.com/ > pictures/ and I need it to read from pics.domain.com/pictures/. I have > all the DNS routing setup already but whenever I try to modify the > public_filename method it always prefixes with domain.com/ and I just > can''t figure out how to override the whole domain it reads from. Any > help you could provide me would be greatly appreciated. Thanks in > advance.--~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---