Hi Alex/Jesse

Thanks for your responses - clearly I have grossly underestimated the 
loads involved in running a single RoR app, let alone a fleet of them!

So I am stuck :( Can anyone think of a cost effective and maintainable 
way to host my sites, described below?

I have several sites (about 10) which I have developed on behalf of 
clients - mostly small businesses near where I live. The sites vary 
greatly in complexity - there are entirely static sites, mostly static 
sites (with the occasional dynamic page), mostly dynamic sites (where 
the page content is generated on the fly) and entirely dynamic sites, 
where the user can login, create new pages on the site, create news 
items which will be displayed on the home and news pages, etc. None of 
these sites receive a huge amount of traffic - the total for all the 
sites is about 10,000 page requests per day.

So I was thinking I could host each of these as a separate RoR app - how 
wrong I was :) So now I am thinking I could host the whole lot as a 
single app, with a couple of mongrels running the whole shebang. But 
having considered this I am presented with a few problems: db separation 
- each dynamic site should (ideally) have it's own db; controller/action 
selection - two requests selecting the same controller/action on 
different sites/domains should (probably) select different controllers, 
even if they all inherit from some default controller; I can't think of 
any others now, but I'm sure there are a few.

Previously I've been using plain, old CGI to do all this. Yes I know my 
setup is archaic, but at least I have realised that now and am trying to 
do something about it :) So currently most of my page URLs are something 
like:

http://www.mydomain.com/cgi-bin/controller.cgi?p=action

I am keen to get all of my sites using the RoR style of URL formatting, 
since (for starters) I think it is more user friendly:

http://www.mydomain.com/controller/action/

I'd love to use RoR for the dynamic sections of the sites - I've only 
been using it for a couple of days and already I feel like I'm more 
productive. But is this going to be possible?

Anyway, any and all suggestions gratefully received - I think I've dug 
myself a bit of a hole, now I just need to find some way out!

Thanks
Jay

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to