What is Mongrel?

Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI. It is framework agnostic and already supports Ruby On Rails, Og+Nitro, and Camping frameworks.

You need Ruby 1.8.4 just like the gem says you do.

Getting Started

The easiest way to get started with Mongrel is to install it via RubyGems and then run a Ruby on Rails application. You can do this easily:

$ sudo gem install mongrel
$ cd myrailsapp
$ mongrel_rails start -d

Which runs Mongrel in the background. You can stop it with:

$ mongrel_rails stop

And you’re all set. There’s quite a few options you can set for the start command. Use the mongrel_rails start -h to see them all.

Win32 Support

Win32 is fully supported by Mongrel with services and CPU affinity support. You should read the Win32 HOWTO for information on getting started.

The main thing with Win32 support is that there is no fork API for Ruby, so you have to use the services features to get persistent servers running. You can get this services support by doing:

gem install mongrel_service

And then just run mongrel_rails to see what services:: commands are available.

Next Steps

Now that you’re a Mongrel user, there’s some thing you should do to educate yourself:

  • Join the mailing list
  • Read the documentation
  • Learn to use—help when you want to know what Mongrel commands can do.

The last one is important. A lot of effort went into making Mongrel as self-documenting as possible. Before you hit the mailing list asking how to do something, try passing that command—help and see if it tells you. If it’s still not clear then ask away.

NEWS

Sep-18-2006
Mongrel 0.3.13.4 -- Released For Unix

Lots and lots of fixes over 0.3.13.3 and very heavily tested. Win32 release coming soon. Install from RubyGems like normal (read the news for more).

Read About It spacer

Jun-25-2006
Mongrel 0.3.13.3 -- Ruby Licensed Release

This release is now licensed under the Ruby license. Enjoy!

Read About It spacer

Jun-25-2006
Mongrel 0.3.13.2 -- RailsConf 2006 Release

Release from RailsConf that does Upload Progress and defending better.

Read About It spacer

Jun-20-2006
Mongrel 0.3.13.1 Small Bug Fixes

Teeny tiny bug fix and the addition of a RedirectHandler donated by Jonas.

Read About It spacer

Jun-16-2006
Mongrel 0.3.13 Officially Released!

It's finally out! Mongrel 0.3.13 with all the goodies for both win32 and everyone else in the whole world.

Read About It spacer

Jun-5-2006
Mongrel 0.3.13 Pre-Release -- Katana Suicide Concurrency

Well, you asked for it. Lots of fixes, days away from official release, and allow_concurrency can murder your children.

Read About It spacer

May-11-2006
Mongrel 0.3.13 Pre-Release -- Out of Hibernation

This Pre-Release fixes lots of reported bugs, adds some requested features, and stars a lot of documentation. Non-Win32 folks should grab and test.

Read About It spacer

Apr-10-2006
Mongrel 0.3.12.4 -- Relaxed Parser, Date Fix

A minor release that relaxes the HTTP parser to allow people to abuse HTTP as a file system via webdav and a fix to the date formatting.

Download spacer

Apr-6-2006
Mongrel 0.3.12.3 -- Thread Debugging

Fixes a bug with CONTENT_TYPE from multipart forms. Better shutdown when a thread refuses to exit. Thread logging for each request letting you track and debug thread leaks.

Download spacer

Apr-3-2006
Mongrel 0.3.12.2 -- Iron Mongrel

This release is the result of pounding the crap out of Mongrel since the last release to make it more robust in the face of really bad traffic. It is pretty ruthless so people should test and report if it's too ruthless.

Download spacer

Mar-30-2006
Mongrel 0.3.12 -- Pre-Release

The official 0.3.12 release of Mongrel is here. This release is hot, but test test test. Should support Rails 1.1 and has lots of debugging and tweaks.

Download spacer


spacer

Downloads: Grab new gear.

spacer

Documentation: RTFM.

spacer

Tracker: Found a bug? Well then report it already?!

spacer

Forums: Mongrel making you sad? Why not say something?

spacer

People: Contact project people.

spacer

Other: Hit the project page for all sorts of other goodies.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.