Skip to content

Commit

Permalink
Try new config.ru of doom
Browse files Browse the repository at this point in the history
  • Loading branch information
Sutto committed Sep 8, 2009
1 parent 2a0f28e commit e2e5a4a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions config.ru
Expand Up @@ -3,14 +3,6 @@ vendor_dir = File.join(File.dirname(__FILE__), "vendor")
require File.join(vendor_dir, "rack", "lib", "rack")
require File.join(vendor_dir, "sinatra", "lib", "sinatra")

Sinatra::Application.default_options.merge!(
:root => GitAuth::BASE_DIR,
:views => GitAuth::BASE_DIR.join("views"),
:public => GitAuth::BASE_DIR.join("public"),
:run => false,
:env => :production
)

require File.join(File.dirname(__FILE__), "lib", "gitauth")
require GitAuth::BASE_DIR.join("lib", "gitauth", "web_app")

Expand All @@ -21,4 +13,10 @@ output = File.open(GitAuth::Logger.default_logger_path, "a+")
STDOUT.reopen(output)
STDERR.reopen(output)

{:root => GitAuth::BASE_DIR, :run => false, :env => :production}.each_pair do |key, value|
GitAuth::WebApp.configure do
set key, value
end
end

run GitAuth::WebApp.new

0 comments on commit e2e5a4a

Please sign in to comment.