From: David Heinemeier Hansson Date: 2004-07-29T18:25:28+09:00 Subject: Re: [ANN] Rails 0.5.5: Windows, WEBrick, lots! >> * Added webrick dispatcher: Try "ruby public/dispatch.servlet --help" >> [Florian Gross] > > If you use this means you have to restart the webserver everytime you > save a file, right? That's were the work of Florian _really_ impressed me. See the command-line options: $ ruby dispatch.servlet --help Usage: ruby dispatch.servlet [options] -p, --port=port Runs Rails on the specified port. Default: 3000 -i, --index=controller Specifies an index controller that requests for root will go to (instead of congratulations screen). -d, --daemon Make Rails run as a Daemon (only works if fork is available -- meaning on *nix). -a, --auto-reload Auto-reloads all the classes on each request (use during development). If you start the server with --auto-reload, each request will get its interpreter -- just like running as CGI! The server accomplishes this by instead of using its own interpreter, it'll boot a new one during request handling. Here's the juicy bit: IO.popen("ruby", "r+") do |ruby| ruby.puts <<-END require 'cgi' require 'stringio' env = #{env.inspect} CGI.send(:define_method, :env_table) { env } $stdin = StringIO.new(#{(req.body || "").inspect}) Dir.chdir(#{@server_options[:server_root].inspect}) eval( 'load "dispatch.rb"', binding, #{File.join(@server_options[:server_root], "dispatch.rb").inspect} ) END ruby.close_write data = ruby.read end >> * Changed license to MIT License (and included license file in >> package) > > What are the consequences/benefits of that? The Ruby license had a bunch of stuff specific to Ruby. MIT license is much simpler and very free. Have a look at http://www.rubyonrails.org/show/License for more. > And, will there be new videos? ;) You betcha! I just got my fancy Sony microphone hooked up, so the next videos will also have a voice over. I'll be posting them to the newly established Rails Academy at http://www.rubyonrails.org/show/RailsAcademy -- David Heinemeier Hansson, http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.instiki.org/ -- A No-Step-Three Wiki in Ruby http://www.basecamphq.com/ -- Web-based Project Management http://www.loudthinking.com/ -- Broadcasting Brain http://www.nextangle.com/ -- Development & Consulting Services