Nate Wiger
2008-Jul-08 00:48 UTC
Different path to public document root in Development mode
I know how to do this for actual deployment, but is there a way to change the Rails "document root" used from its default of RAILS_ROOT/ public *in development mode*? I want to do something like this: config.document_root = "/shared/global/images" Since I have several different applications using the same image sets. We can''t use svn:externals or other tricks due to some complexities I''ve omitted, so I''m hoping there''s a way to configure this in environment.rb Thanks, Nate --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Phil Calder
2008-Jul-08 20:53 UTC
Re: Different path to public document root in Development mode
Is it enough to change the asset host (for serving stylesheets, javascripts etc)? Copy the line: config.action_controller.asset_host = ''http://whatever/'' from production.rb to development.rb Hope this helps. Phil 2008/7/8 Nate Wiger <nwiger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > I know how to do this for actual deployment, but is there a way to > change the Rails "document root" used from its default of RAILS_ROOT/ > public *in development mode*? > > I want to do something like this: > > config.document_root = "/shared/global/images" > > Since I have several different applications using the same image sets. > > We can''t use svn:externals or other tricks due to some complexities > I''ve omitted, so I''m hoping there''s a way to configure this in > environment.rb > > Thanks, > Nate > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---