Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I trying to setup web server for publish git repositories on successfully installed and worked redmine server.

Passenger occurs error: Web application could not be started

uninitialized constant GitHttp (NameError) config.ru:16:in block in <main>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:ininstance_eval' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:55:in initialize' config.ru:1:innew' config.ru:1:in <main>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:ineval' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in preload_app' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in <module:PhusionPassenger>' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in'

/usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby

share|improve this question
    
I Ask developer. See github.com/schacon/grack/issues/20 –  Vladimir Skubriev Oct 2 '13 at 14:23

1 Answer 1

up vote 0 down vote accepted

GitHttp is a class in released versions of grack (last is 0.2) which does not exist anymore in project's git master branch.

I suspect you updated your grack code to master HEAD without updating config.ru. Your config.ru for master should be like this, with project path replaced :

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')

use Rack::ShowExceptions

require 'grack'
require 'git_adapter'

config = {
  :project_root => "/path/to/your/repos/",
  :adapter => Grack::GitAdapter,
  :git_path => '/usr/bin/git',
  :upload_pack => true,
  :receive_pack => true,
}

run Grack::App.new(config)
share|improve this answer
    
Thank you very much. This is solved my problem. I use old article from redmine wiki. And error stops me. –  Vladimir Skubriev Oct 2 '13 at 14:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.