Skip to content

Commit

Permalink
Merge git://github.com/markbates/thin
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Apr 22, 2008
2 parents ae6f5b5 + 863978d commit fa4eb39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rack/adapter/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class AdapterNotFound < RuntimeError; end
:ramaze => "start.rb",
:merb => "config/init.rb",
:halcyon => 'runner.ru',
:mack => 'config/app_config/default.yml',
:file => nil
}

Expand Down Expand Up @@ -57,6 +58,10 @@ def self.for(name, options={})

return Halcyon::Runner.new

when :mack
ENV["MACK_ENV"] = options[:environment]
require 'mack'
return Mack::Utils::Server.build_app
when :file
return Rack::File.new(options[:chdir])

Expand Down

0 comments on commit fa4eb39

Please sign in to comment.