DyingToLearn
2008-Apr-06 04:57 UTC
Create and run multiple rails apps from within a rails app
Hi, I am hoping to build a rails app that can create other rails apps and run them. Basically the user fills in some parameters and a new rails app is generated. Once generated, then the new application is running. I have no problem putting together the code that generates the new app. However, I am having trouble with figuring out how to run the new applications. I see two main options: 1. Reconfigure my web server to support the new app. This is not my preference because I would not like to change my code to support different hosting environments (development/production). 2. Having my main rails app accept all the requests, then send them on to the new app. I really don''t know how this would work. Is it possible? Is it reasonable? All of the apps will be low-traffic. 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 -~----------~----~----~----~------~----~------~--~---
If it low traffic why not install it on subdomain on the same host? Http://www.rubyplus.org Free Ruby & Rails screencasts On Apr 5, 2008, at 9:57 PM, DyingToLearn <phylae-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > I am hoping to build a rails app that can create other rails apps and > run them. Basically the user fills in some parameters and a new rails > app is generated. Once generated, then the new application is running. > > I have no problem putting together the code that generates the new > app. However, I am having trouble with figuring out how to run the new > applications. I see two main options: > > 1. Reconfigure my web server to support the new app. This is not my > preference because I would not like to change my code to support > different hosting environments (development/production). > > 2. Having my main rails app accept all the requests, then send them on > to the new app. I really don''t know how this would work. Is it > possible? Is it reasonable? > > All of the apps will be low-traffic. > > 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 -~----------~----~----~----~------~----~------~--~---
DyingToLearn
2008-Apr-06 06:52 UTC
Re: Create and run multiple rails apps from within a rails app
Thanks for the reply! I am hoping to use the same host. However, I want the entire application to be set up programmatically. I know I could just reconfigure the webserver, but I would really like to keep my implementation webserver agnostic (if possible). As for subdomains, they would certainly look very nice. However, I don''t know if this will be possible without making my implementation webserver-specific. Please let me know if I am wrong! Cheers On Apr 5, 11:24 pm, Bcp <bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If it low traffic why not install it on subdomain on the same host? > > Http://www.rubyplus.org > Free Ruby & Rails screencasts > > On Apr 5, 2008, at 9:57 PM, DyingToLearn <phy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi, > > > I am hoping to build a rails app that can create other rails apps and > > run them. Basically the user fills in some parameters and a new rails > > app is generated. Once generated, then the new application is running. > > > I have no problem putting together the code that generates the new > > app. However, I am having trouble with figuring out how to run the new > > applications. I see two main options: > > > 1. Reconfigure my web server to support the new app. This is not my > > preference because I would not like to change my code to support > > different hosting environments (development/production). > > > 2. Having my main rails app accept all the requests, then send them on > > to the new app. I really don''t know how this would work. Is it > > possible? Is it reasonable? > > > All of the apps will be low-traffic. > > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Check out adv rails recipes. It shows how to use subdomains in rails apps. Http://www.rubyplus.org Free Ruby & Rails screencasts On Apr 5, 2008, at 11:52 PM, DyingToLearn <phylae-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Thanks for the reply! > > I am hoping to use the same host. However, I want the entire > application to be set up programmatically. I know I could just > reconfigure the webserver, but I would really like to keep my > implementation webserver agnostic (if possible). > > As for subdomains, they would certainly look very nice. However, I > don''t know if this will be possible without making my implementation > webserver-specific. Please let me know if I am wrong! > > Cheers > > > > On Apr 5, 11:24 pm, Bcp <bcpar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> If it low traffic why not install it on subdomain on the same host? >> >> Http://www.rubyplus.org >> Free Ruby & Rails screencasts >> >> On Apr 5, 2008, at 9:57 PM, DyingToLearn <phy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >>> Hi, >> >>> I am hoping to build a rails app that can create other rails apps >>> and >>> run them. Basically the user fills in some parameters and a new >>> rails >>> app is generated. Once generated, then the new application is >>> running. >> >>> I have no problem putting together the code that generates the new >>> app. However, I am having trouble with figuring out how to run the >>> new >>> applications. I see two main options: >> >>> 1. Reconfigure my web server to support the new app. This is not my >>> preference because I would not like to change my code to support >>> different hosting environments (development/production). >> >>> 2. Having my main rails app accept all the requests, then send >>> them on >>> to the new app. I really don''t know how this would work. Is it >>> possible? Is it reasonable? >> >>> All of the apps will be low-traffic. >> >>> 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 -~----------~----~----~----~------~----~------~--~---
DyingToLearn
2008-Apr-06 07:22 UTC
Re: Create and run multiple rails apps from within a rails app
Advanced Rails Recipes has been on my wish list since Christmas, but Amazon isn''t shipping it to Canada yet :( I did check out this page http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys That was kind of useful, but it doesn''t really address the whole issue. I need these to be completely separate rails apps. Each one gets its own database, etc. 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 -~----------~----~----~----~------~----~------~--~---