From 5176dbc58fd79f3be2b110928244bb783b421b92 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..1d9520d 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, :Port => 9000

Or, you can use the rackup command line