The Passenger site uses nginx to serve static pages and proxies dynamic
pages to a Apache/Passenger server. Hong Li wrote about this on his blog.
> Has the best method of deployment been decided on yet? I have read
> quite a bit that seems to suggest that it can potentially be difficult
> to set up a stable and scalable deployment of Ruby on Rails, so I want
> to make sure I am using the best method of deployment.
>
We've switched from Mongrel to Passenger + REE and haven't looked back.
As always, you should choose what works best for you.
--
Roderick van Domburg
http://www.railscluster.nl
Ruby 1.9 is a different release series. Many libraries aren't compatible
with 1.9 yet. For now you should stick with 1.8.
> The official Passenger site then goes on to recommend using Ruby
> Enterprise - but I am not keen on using that as it isn't the official
> Ruby release.
Phusion Passenger works just fine with normal Ruby. Ruby Enterprise
Edition is totally optional -- but if you do use it, then things will
work more efficiently.
> Also another strange thing is the official Passenger
> site is using nginx, even though the benchmarks indicate using
> mod_rails and ruby enterprise is the best thing to do. Makes me a bit
> weary of using something that doesn't practice what it preaches.
1. We run Apache behind an Nginx reverse proxy:
http://izumi.plan99.net/blog/index.php/2008/08/22/re-strange-http-header/
2. www.modrails.com is just a static website with static .html files.
It's not written in Ruby on Rails. All our Rails applications however
are deployed on Apache, but behind an Nginx reverse proxy.
> Engine Yard seem to be using nginx. Slicehost seem to be using Apache/
> Mongrel/Lighttpd.
>
> Has the best method of deployment been decided on yet? I have read
> quite a bit that seems to suggest that it can potentially be difficult
> to set up a stable and scalable deployment of Ruby on Rails, so I want
> to make sure I am using the best method of deployment.
The Ruby on Rails website recommends Phusion Passenger as deployment
method: http://rubyonrails.org/deploy
There are many high-profile organizations using Phusion Passenger,
including:
- MTV
- New York Times
- LocaWeb (Brazil's largest web host)
- Aboutus.org (very busy site; see Alexa ranking)
- Shopify
- Dreamhost
- RailsMachine
See
http://groups.google.com/group/phusion-passenger/browse_thread/thread/521dd6281331dd9e/bce07da3064c420d
for a bigger list.
Regards,
Hongli Lai
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Yeah, looks good.
If you can run Apache and are capable of setting up all the things you
listed, you can run Nginx. I found it extremely simple to get going.
--
Greg Donald
http://destiney.com/