Is it possible two run two separate websites in Rails on the same codebase? Does it make sense to do so? I currently have a website that I want to branch into another market. The underlying structure of the two sites will be nearly the same. Here are the major differences: - Templates will be different between the two sites - Domains will also therefore be different - Navigation will be similar (but different) - Database could go either way but could certainly be the same I could simply tweak the code from one site and re-deploy, but then I''m maintaining two different codebases for essentially the same site. Are there any good resources on how to set this up? Does anyone in this community have direct experience of running two different .coms on one codebase in Rails? I''d love some guidance on how to get this setup and started. Thanks, -Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ressister wrote:> I could simply tweak the code from one site and re-deploy, but then > I''m maintaining two different codebases for essentially the same > site. Are there any good resources on how to set this up? Does > anyone in this community have direct experience of running two > different .coms on one codebase in Rails?You could factor out the underlying functionality into a gem or a plugin. This is how Rails was born. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Great idea Mark, thanks for the suggestion. If there are any specific reference materials that you know of on the web that you think I should check out for this, let me know. Thanks for you response. -Alex On Mar 24, 10:41 am, Mark Bush <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> ressister wrote: > > I could simply tweak the code from one site and re-deploy, but then > > I''m maintaining two different codebases for essentially the same > > site. Are there any good resources on how to set this up? Does > > anyone in this community have direct experience of running two > > different .coms on one codebase in Rails? > > You could factor out the underlying functionality into a gem or a > plugin. This is how Rails was born. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ressister wrote:> Great idea Mark, thanks for the suggestion. If there are any specific > reference materials that you know of on the web that you think I > should check out for this, let me know. Thanks for you response.This looks like a good place to start: http://railscasts.com/episodes/33 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---