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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy