1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Small bug fix for possible images not being served.

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@29 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-02-11 19:35:06 +00:00
parent 55f03e4163
commit 4595749e01
3 changed files with 29 additions and 25 deletions

46
README
View file

@ -11,26 +11,31 @@ scream without too many portability issues.
== Status == Status
The 0.2.2 release of Mongrel features an HTTP core server that is the fastest possible The 0.3 release is the first official release to start supporting Ruby on Rails
thing I could get without using something other than Ruby. It features a few bug fixes, and to have a more complete DirHandler for serving directories of files. This release
but mostly just a change to the Mongrel::HttpResponse class to make it more feature is actually closer to a full functioning web server than the previous releases.
complete. The remaining development will be spent getting Mongrel to work with
other frameworks, adding additional needed features, and improving the concurrency
and speed.
The current release has samples from "why the lucky stiff" for his Camping The Rails support is pretty rough right now, but check out the bin/mongrel_rails file,
framework in the examples directory. Camping is a small micro framework which should be installed into your PATH if you use a gem. You should be able to
(http://rubyforge.org/projects/camping) which should work with Mongrel if do the following to run your Rails applications:
you use the subversion source for Camping.
This is also the first release onto the new Mongrel RubyForge project > cd myrailsapp
page found at http://rubyforge.org/projects/mongrel/ thanks to Tom Copland. > mongrel_rails 0.0.0.0 3000
I'll be looking to automate management of this, but feel free to use
rubyforge to post feature requests, bugs, and join the mailing list. And then hit http://localhost:3000/ to see your app. One thing is that if you have
a public/index.html file then you'll get that served instead of your Rails application.
People with the daemons gem installed will see that mongrel_rails will go into the
background. You can kill it with:
> kill -TERM `cat log/mongrel-3000.pid`
Where "3000" is whatever port you told it to listen on when you ran it.
The file serving is still a little rough and the redirects might not work well, but
try it out and tell me about any weird errors. File uploads will definitely have some
problems.
Finally, it now supports all CGI parameters that don't cause a performance hit,
and it has a Mongrel::DirHandler which can serve files out of a directory and
do (optional) directory listings.
== Install == Install
@ -43,6 +48,7 @@ who can build it for you.
Finally, the source includes a setup.rb for those who hate RubyGems. Finally, the source includes a setup.rb for those who hate RubyGems.
== Usage == Usage
The examples/simpletest.rb file has the following code as the simplest The examples/simpletest.rb file has the following code as the simplest
@ -104,12 +110,8 @@ With the core of Mongrel completed I'm now turning to the next set of features
to make Mongrel useful for hosting web applications in a heavily utilized to make Mongrel useful for hosting web applications in a heavily utilized
production environment. Right now I'm looking at: production environment. Right now I'm looking at:
* Fast static file handling with directory listings.
* More testing on more platforms.
* An idea I've had for an insane caching handler which could speed up quite a * An idea I've had for an insane caching handler which could speed up quite a
few deployments. few deployments.
* General little things most web servers need.
* A nice management system or interface for controlling mongrel servers.
Overall though the goal of Mongrel is to be just enough HTTP to serve a Ruby Overall though the goal of Mongrel is to be just enough HTTP to serve a Ruby
web application that sits behind a more complete web server. Everything web application that sits behind a more complete web server. Everything
@ -117,7 +119,7 @@ in the next will focus on actually hosting the major web frameworks for Ruby:
* Camping -- because it's already done (thanks Why). * Camping -- because it's already done (thanks Why).
* Ruby on Rails -- that's where my bread is buttered right now. * Ruby on Rails -- that's where my bread is buttered right now.
* Nitro -- George is a nice guy, and Nitro is thread safe. Might be fun. * Nitro -- Nitro folks have already hooked this up and started using it. Nice.
* ????? -- Others people might be interested in. * ????? -- Others people might be interested in.
== Contact == Contact

View file

@ -9,8 +9,7 @@ include FileUtils
setup_tests setup_tests
setup_clean ["ext/http11/Makefile", "pkg", "lib/*.bundle", "ext/http11/*.bundle"] setup_clean ["ext/http11/Makefile", "pkg", "lib/*.bundle", "ext/http11/*.bundle"]
setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/*.rb', setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/*.rb', 'doc/**/*.rdoc', 'ext/http11/http11.c']
'doc/**/*.rdoc', 'ext/http11/http11.c']
desc "Does a full compile, test run" desc "Does a full compile, test run"
task :default => [:compile, :test] task :default => [:compile, :test]
@ -27,4 +26,4 @@ setup_extension("http11", "http11")
summary = "An experimental fast simple web server for Ruby." summary = "An experimental fast simple web server for Ruby."
test_file = "test/test_ws.rb" test_file = "test/test_ws.rb"
setup_gem("mongrel", "0.2.2", "Zed A. Shaw", summary, [], test_file) setup_gem("mongrel", "0.3", "Zed A. Shaw", summary, ['mongrel_rails'], test_file)

View file

@ -489,6 +489,9 @@ module Mongrel
# it's a file and it's there # it's a file and it's there
return req return req
end end
else
# does not exist or isn't in the right spot
return nil
end end
end end