| CARVIEW |
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, Camping, and IOWA frameworks.
Mongrel was originally written by Zed A. Shaw. It is licensed under the Ruby License.
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.
Now that you’re a Mongrel user, there’s some things 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.
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.
Documentation
Announcements are made on the News page.
The Mongrel RDoc is here.
We have a long, rambly FAQ, and there is a page about Security. More pages, mostly out-of-date, are in the index.
If you need to contact somebody, see the Attributions.
If you register for an account, you can edit any page but this one and News. Please help us improve.
Downloads
Mongrel and related files can be downloaded manually from RubyForge.
