2012-03-29 21:34:22 +01:00
|
|
|
Dir[Rails.root.join("lib/ext/**/*.rb")].each {|f| require f}
|
2011-11-24 21:46:19 +00:00
|
|
|
require 'modules'
|
2012-03-29 21:34:22 +01:00
|
|
|
require 'plugins'
|
2011-11-24 21:46:19 +00:00
|
|
|
|
2011-11-15 21:58:27 +00:00
|
|
|
# Setup Smart HTTP GRack
|
2012-11-08 09:13:48 +00:00
|
|
|
config = {:project_root => File.join(APP_CONFIG['git_path'], 'git_projects'), :git_path => 'git', :upload_pack => true, :receive_pack => true}
|
2011-11-22 13:01:33 +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
|
2012-04-23 13:53:30 +01:00
|
|
|
|
|
|
|
Rosa::Application.config.action_mailer.default_url_options = { :host => APP_CONFIG['action_mailer_host'] } if APP_CONFIG['action_mailer_host']
|