From 599a0b4b82bfd9cb3938860e4fd3da73b15893cb Mon Sep 17 00:00:00 2001 From: Max Veytsman Date: Thu, 10 Jul 2014 15:06:05 -0400 Subject: [PATCH] Improved hello world example Calling `Rack::Server.start` seems more correct in this instance and is in-line with the example here https://github.com/rack/rack/blob/master/example/protectedlobster.rb --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d2f3de9..cfd8d8e 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@

Rack: a Ruby Webserver Interface

['200', {'Content-Type' => 'text/html'}, ['A barebones rack app.']] end - Rack::Handler::WEBrick.run app + Rack::Server.start :app => app, :server => 'webrick', :Port => 9000

Or, you can use the rackup command line