2011-03-10 21:48:15 +00:00
|
|
|
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
2011-11-15 21:58:27 +00:00
|
|
|
|
|
|
|
# Setup Smart HTTP GRack
|
|
|
|
require 'grack'
|
|
|
|
config = {:project_root => File.join(APP_CONFIG['root_path'], 'git_projects'), :git_path => '/opt/local/bin/git', :upload_pack => true, :receive_pack => true}
|
2011-11-21 21:59:56 +00:00
|
|
|
Rosa::Application.config.middleware.insert_before 0, ::Grack::Handler, config
|
|
|
|
# Rosa::Application.config.middleware.insert_after ::Rails::Rack::Logger, ::Grack::Handler, config
|
2011-11-15 21:58:27 +00:00
|
|
|
Rosa::Application.config.middleware.insert_before ::Grack::Handler, ::Grack::Auth
|
2011-11-17 21:57:30 +00:00
|
|
|
|
|
|
|
# Grit::Git.git_timeout = 60
|