Skip to content
This repository was archived by the owner on Jun 25, 2022. It is now read-only.

Commit 5176dbc

Browse files
committed
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
1 parent e5ef954 commit 5176dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>Rack: a Ruby Webserver Interface</h1>
4747
['200', {'Content-Type' =&gt; 'text/html'}, ['A barebones rack app.']]
4848
end
4949

50-
Rack::Handler::WEBrick.run app
50+
Rack::Server.start :app => app, :Port => 9000
5151
</pre>
5252
<p>
5353
Or, you can use the <span class="code">rackup</span> command line

0 commit comments

Comments
 (0)