Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] Mongrel 0.3 -- Runs Ruby On Rails

Reply
Thread Tools

[ANN] Mongrel 0.3 -- Runs Ruby On Rails

 
 
Zed Shaw
Guest
Posts: n/a
 
      02-10-2006
Hello Folks,

This is the long awaited release of the Mongrel HTTP library that
supports *Ruby On Rails*. I know tons of people have been waiting
for it, so I've got a few things to lay down first before you get all
excited:

1) It's very very ALPHA support for Rails. It will run a Rails app,
and runs my simple apps, but it's not fast or correct as it needs to be.
2) It should work for win32 people who can build it, but it won't
become a service. Run it in a cmd window.
3) I did this release late at night so we know how well those hold
up.

Otherwise, please punish it like crazy for me.


== Getting The Goods

You can grab Mongrel via:

* Project Page -- http://rubyforge.org/projects/mongrel/
* Docs Page -- http://mongrel.rubyforge.org/

You can also install using RubyGems with:

> sudo gem install mongrel


And of course you need to have a compiler installed for it to build
just like before. No new C code has been included so if you built it
before then you can build it now. If you can't build it then let me
know and I'll help you out.

You can also go to the project page's Files section to grab
source .tgz files if you like to install with setup.rb and source.


== Running Ruby On Rails

The Rails support is done through a small script called
mongrel_rails. This script kicks up all the gear needed for your
application, hooks it into Mongrel, and then goes into daemon mode
(if you install the daemons gem). If you install with RubyGems then
you should get the mongrel_rails command as well. You can then run
it with:

> cd myapp
> mongrel_rails 0.0.0.0 3000


It will write any errors to log/mongrel.log and put it's PID into log/
mongrel-3000.pid. You can kill it with:

> kill -TERM `cat log/mongrel-3000.pid`


You should then be able to hit your local web server and see your
Rails application run. If it don't then send me your mongrel.log.
Another thing to do is if you get a URL giving you the wrong mime
type then let me know. If you get a malformed response then send me
the result of doing:

> curl -i http://localhost:3000/the/bad/uri



== Big Changes

* URIClassifier had an error in the prefix based search such that "/"
wasn't getting resolved. Fixed this up and cleaned it.
* DirHandler now supports many more needed features such as mime type
mapping, serving index.html if present, getting the paths right on
"/" mounted directories, and allowing others to ask if a DirHandler
can serve a file. All of this was so that Mongrel can run a Rails
app with no external support.
* Fixed a problem with Error404Handler which caused an explosion.
* Implemented the mongrel_rails server so people can start working
with Rails and Mongrel.


== Next Release

I'll be focusing on making the Rails support tight as hell and
squeezing out every ounce of performance possible. This will include
making my dream caching mechanism.

I'll also look at the next nail in the CGI library's coffin: multi-
part mime decoding and handling uploaded files. I'm setting my
sights next on CGI as the library to take down. Anyone interested in
helping on this should contact me.

Enjoy the release and send me your bug reports.

Zed A. Shaw
http://www.zedshaw.com/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mongrel service vs mongrel in command shell rabarama Ruby 1 12-15-2009 12:46 PM
[ANN] Mongrel Web Server 0.3.12.2 -- Iron Mongrel (Parser Fix) Zed Shaw Ruby 8 04-05-2006 06:32 AM
Mongrel Web Server 0.3.12.1 -- Iron Mongrel Zed Shaw Ruby 3 04-05-2006 06:31 AM
[ANN] Mongrel 0.3.1 -- New Site/Runs Right Zed Shaw Ruby 12 02-14-2006 06:43 PM
mongrel rails issue _blackdog Ruby 2 02-14-2006 01:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57