Topic: Deploying Multiple Rails Apps to the same server

Does anyone know the recommended way of deploying multiple rails apps to the same server? For example, I like using Mongrel but I can't imagine having lots of mongrel processes running all the time is server resource efficient. Is it better to just use fcgi and apache? Or is there another way?

Any thoughts welcome...

Thanks

Adam

Re: Deploying Multiple Rails Apps to the same server

It's quite normal to have multiple processes, even if you only have one Rails app. Normally you set up a proxy to split off requests into multiple Mongrel or FastCGI processes. If your Rails site isn't that busy you can probably just get by with one for each app, but two would be better.

Railscasts - Free Ruby on Rails Screencasts

Re: Deploying Multiple Rails Apps to the same server

Take a look at capistrano, and if you use ubuntu, the deprec gem.

You can get a rails stack running in less than a hour (apache, mongrel, subversion, mysql, etc) and capistrano will help deploy all the applications you need (and manage them for you).

http://danielfischer.com - Personal Web-Technology-Blog, Los Angeles.

Re: Deploying Multiple Rails Apps to the same server

Oh I can get it running & deployed just fine with capistrano. I was more interested in the resoure implications of running lots of mongrel processes for lots of different apps on one server.