Bill Walton
2007-Apr-04 18:54 UTC
Rails applications deployed as subdomains of Rails application - how to?
Sorry about the subject line, but I couldn''t think of a better way to state my problem. I''ve got a Rails app deployed at www.main-domain.com. I need to deploy copies of that app to subdomains like sub1.main-domain.com, sub2.main-domain.com, etc. Each subdomain could use the same app code, but each *must* have it''s own database. (They also need their own images, stylesheets, etc.) None of the examples I''ve been able to Google up have that characteristic. They all assume a shared database with the subdomain''s data being filtered in the model. I would really appreciate any thoughts / experience / pointers to stuff I''ve missed in my Googling that might put me on the right track. Thanks, Bill --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Long
2007-Apr-05 05:01 UTC
Re: Rails applications deployed as subdomains of Rails application - how to?
Bill Walton wrote:> I''ve got a Rails app deployed at www.main-domain.com. I need to deploy > copies of that app to subdomains like sub1.main-domain.com, sub2.main-domain.com, > etc. Each subdomain could use the same app code, but each *must* have it''s > own database. (They also need their own images, stylesheets, etc.) None of the > examples I''ve been able to Google up have that characteristic. They all assume > a shared database with the subdomain''s data being filtered in the model. I would > really appreciate any thoughts / experience / pointers to stuff I''ve missed in my > Googling that might put me on the right track. >Since you *must* have own database as a requirement the simplest solution is to deploy one app for each sub-domain. You can use Virtual Host to set this up. The down side is code maintenance can get complicated. -- Long http://MeandmyCity.com/ - Find your way http://edgesoft.ca/blog/read/2 - No-Cookie Session Support plugin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---