goodieboy
2007-Feb-26 15:50 UTC
Is it possible to have nested rails apps for completely different sites?
OK, I have a host (A2 Hosting) that allows me to point different domains at sub-folders for sub-domain hosting. I''d like to be able to run diferent rails apps in each of those folders and one in the root also. I figure I just need to make sure that the first url framgment never has the name of a sub-folder/site set as a route name. Any advice for me? It''s Mongrel and I seriously don''t know much about that. Is this even possible? - matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Ivers
2007-Feb-26 16:17 UTC
Re: Is it possible to have nested rails apps for completely different sites?
I don''t think it would be a problem to use a subdomain-name as a route: If someone hits bob.mysite.com, the host will route the web-request to the application at <base folder>/bob If someone hits www.mysite.com/bob, it will route the request to the application at <base folder>, and pass /bob to the routing mechanism. I don''t see where you''re going to run into routing problems. On 2/26/07, goodieboy <goodieBoy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > OK, > > I have a host (A2 Hosting) that allows me to point different domains > at sub-folders for sub-domain hosting. I''d like to be able to run > diferent rails apps in each of those folders and one in the root also. > I figure I just need to make sure that the first url framgment never > has the name of a sub-folder/site set as a route name. > > Any advice for me? It''s Mongrel and I seriously don''t know much about > that. Is this even possible? > > - matt > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
goodieboy
2007-Feb-26 21:16 UTC
Re: Is it possible to have nested rails apps for completely different sites?
I see. One thing I just realized... the subdomain are setup differently on this server. They''re, well not really sub-domains but add-ons. The server name is completely different (not a sub.parent type name). A2 Hosting says to use ln -s rails-app/public public_html, does that seem like the best way to deploy this? Using links in this setup could be a problem no? Thanks for your help, matt On Feb 26, 11:17 am, "Luke Ivers" <technod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I don''t think it would be a problem to use a subdomain-name as a route: > > If someone hits bob.mysite.com, the host will route the web-request to the > application at <base folder>/bob > If someone hitswww.mysite.com/bob, it will route the request to the > application at <base folder>, and pass /bob to the routing mechanism. > > I don''t see where you''re going to run into routing problems. > > On 2/26/07, goodieboy <goodie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > OK, > > > I have a host (A2 Hosting) that allows me to point different domains > > at sub-folders for sub-domain hosting. I''d like to be able to run > > diferent rails apps in each of those folders and one in the root also. > > I figure I just need to make sure that the first url framgment never > > has the name of a sub-folder/site set as a route name. > > > Any advice for me? It''s Mongrel and I seriously don''t know much about > > that. Is this even possible? > > > - matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Ivers
2007-Feb-26 21:27 UTC
Re: Is it possible to have nested rails apps for completely different sites?
Not sure, I have no experience with deployment of this nature. The only advice I can give you is to try out the Rails Deployment group/list/forum... it can be found online at http://www.ruby-forum.com/forum/23 On 2/26/07, goodieboy <goodieBoy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I see. One thing I just realized... the subdomain are setup > differently on this server. They''re, well not really sub-domains but > add-ons. The server name is completely different (not a sub.parent > type name). A2 Hosting says to use ln -s rails-app/public public_html, > does that seem like the best way to deploy this? Using links in this > setup could be a problem no? > > Thanks for your help, > > matt > > On Feb 26, 11:17 am, "Luke Ivers" <technod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I don''t think it would be a problem to use a subdomain-name as a route: > > > > If someone hits bob.mysite.com, the host will route the web-request to > the > > application at <base folder>/bob > > If someone hitswww.mysite.com/bob, it will route the request to the > > application at <base folder>, and pass /bob to the routing mechanism. > > > > I don''t see where you''re going to run into routing problems. > > > > On 2/26/07, goodieboy <goodie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > OK, > > > > > I have a host (A2 Hosting) that allows me to point different domains > > > at sub-folders for sub-domain hosting. I''d like to be able to run > > > diferent rails apps in each of those folders and one in the root also. > > > I figure I just need to make sure that the first url framgment never > > > has the name of a sub-folder/site set as a route name. > > > > > Any advice for me? It''s Mongrel and I seriously don''t know much about > > > that. Is this even possible? > > > > > - matt > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
goodieboy
2007-Feb-26 21:29 UTC
Re: Is it possible to have nested rails apps for completely different sites?
Thank you. Matt On Feb 26, 4:27 pm, "Luke Ivers" <technod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Not sure, I have no experience with deployment of this nature. > The only advice I can give you is to try out the Rails Deployment > group/list/forum... it can be found online athttp://www.ruby-forum.com/forum/23 > > On 2/26/07, goodieboy <goodie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I see. One thing I just realized... the subdomain are setup > > differently on this server. They''re, well not really sub-domains but > > add-ons. The server name is completely different (not a sub.parent > > type name). A2 Hosting says to use ln -s rails-app/public public_html, > > does that seem like the best way to deploy this? Using links in this > > setup could be a problem no? > > > Thanks for your help, > > > matt > > > On Feb 26, 11:17 am, "Luke Ivers" <technod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I don''t think it would be a problem to use a subdomain-name as a route: > > > > If someone hits bob.mysite.com, the host will route the web-request to > > the > > > application at <base folder>/bob > > > If someone hitswww.mysite.com/bob, it will route the request to the > > > application at <base folder>, and pass /bob to the routing mechanism. > > > > I don''t see where you''re going to run into routing problems. > > > > On 2/26/07, goodieboy <goodie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > OK, > > > > > I have a host (A2 Hosting) that allows me to point different domains > > > > at sub-folders for sub-domain hosting. I''d like to be able to run > > > > diferent rails apps in each of those folders and one in the root also. > > > > I figure I just need to make sure that the first url framgment never > > > > has the name of a sub-folder/site set as a route name. > > > > > Any advice for me? It''s Mongrel and I seriously don''t know much about > > > > that. Is this even possible? > > > > > - matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---