LukeStark
2006-Nov-30 17:26 UTC
Best ways to share static content across apps...suggestion welcome!
We''ve got several apps on the server: /app1 /app2 /app3 and we have some shared content here: /shared_includes Maybe I''m blind, but I can''t find a good way to include say /shared_includes/mything.html inside an rhtml template. The best thing I''ve found is a symlink under /public to it and then do a <%= open(ugly_path).readlines %> Is there a better way? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jimmy Kittiyachavalit
2006-Nov-30 22:21 UTC
Re: Best ways to share static content across apps...suggestion welcome!
I haven''t encountered this problem before, but a few alternatives come to mind. * Store the content in a database * Access the content through some webservice * NFS or some other similar FS solution On 11/30/06, LukeStark <starkaudio-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > We''ve got several apps on the server: > > /app1 > /app2 > /app3 > > and we have some shared content here: > > /shared_includes > > Maybe I''m blind, but I can''t find a good way to include say > /shared_includes/mything.html inside an rhtml template. > > The best thing I''ve found is a symlink under /public to it and then do > a <%= open(ugly_path).readlines %> > > Is there a better way? > > Thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---