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

Commit

Permalink
Improved hello world example
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mveytsman committed Dec 8, 2016
1 parent e5ef954 commit 5176dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Rack: a Ruby Webserver Interface</h1>
['200', {'Content-Type' =&gt; 'text/html'}, ['A barebones rack app.']]
end

Rack::Handler::WEBrick.run app
Rack::Server.start :app => app, :Port => 9000
</pre>
<p>
Or, you can use the <span class="code">rackup</span> command line
Expand Down

0 comments on commit 5176dbc

Please sign in to comment.