Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix -sthin -- need to require thin for the handler

  • Loading branch information...
commit b7c102268634cdf0034a5d6d5cce40edc8ebc1c8 1 parent 89c7b91
@rtomayko authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  bin/shotgun
View
3  bin/shotgun
@@ -4,6 +4,7 @@ require 'optparse'
env = ENV['RACK_ENV'] || 'development'
browse = false
+server = nil
public_dir = 'public' if File.directory?('public')
options = {:Port => 9393, :Host => '127.0.0.1', :AccessLog => [], :Path => '/'}
@@ -110,7 +111,9 @@ require 'rack/showexceptions'
require 'shotgun'
+require 'thin' if server.to_s.downcase == 'thin'
server = Rack::Handler.get(server) || Rack::Handler.default
+
app =
Rack::Builder.new do
# these middleware run in the master process.
Please sign in to comment.
Something went wrong with that request. Please try again.