Forum: Ruby on Rails Is it possible to have nested rails apps for completely diff

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
goodieboy (Guest)
on 2007-02-26 17:51
(Received via mailing list)
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
Luke I. (Guest)
on 2007-02-26 18:18
(Received via mailing list)
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.
goodieboy (Guest)
on 2007-02-26 23:18
(Received via mailing list)
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
Luke I. (Guest)
on 2007-02-26 23:28
(Received via mailing list)
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
M.W. M. (Guest)
on 2007-02-26 23:31
(Received via mailing list)
Thank you.

Matt
This topic is locked and can not be replied to.