Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update Lobster example #484

Merged
merged 1 commit into from

2 participants

Oscar Del Ben James Tucker
Oscar Del Ben

The motivation for this PR is:

  • The sample apps uses the WEBrick handler directly. This breaks signal management (CTRL-C for example) and doesn't allow Rack to pick the default server.
James Tucker raggi merged commit 0869122 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 7, 2013
  1. Oscar Del Ben

    Update Lobster example

    oscardelben authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +1 −1  example/protectedlobster.rb
  2. +3 −3 lib/rack/lobster.rb
2  example/protectedlobster.rb
View
@@ -11,4 +11,4 @@
pretty_protected_lobster = Rack::ShowStatus.new(Rack::ShowExceptions.new(protected_lobster))
-Rack::Handler::WEBrick.run pretty_protected_lobster, :Port => 9292
+Rack::Server.start :app => pretty_protected_lobster, :Port => 9292
6 lib/rack/lobster.rb
View
@@ -59,7 +59,7 @@ def call(env)
if $0 == __FILE__
require 'rack'
require 'rack/showexceptions'
- Rack::Handler::WEBrick.run \
- Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)),
- :Port => 9292
+ Rack::Server.start(
+ :app => Rack::ShowExceptions.new(Rack::Lint.new(Rack::Lobster.new)), :Port => 9292
+ )
end
Something went wrong with that request. Please try again.