mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Move proper requires into rack handler run. Fixes #1076
This commit is contained in:
parent
605200e575
commit
f600a36812
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
require 'rack/handler'
|
||||
require 'puma'
|
||||
|
||||
module Rack
|
||||
module Handler
|
||||
|
@ -10,6 +9,11 @@ module Rack
|
|||
}
|
||||
|
||||
def self.run(app, options = {})
|
||||
require 'puma/configuration'
|
||||
require 'puma/commonlogger'
|
||||
require 'puma/events'
|
||||
require 'puma/launcher'
|
||||
|
||||
options = DEFAULT_OPTIONS.merge(options)
|
||||
|
||||
conf = ::Puma::Configuration.new(options) do |c|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue