Skip to content

Instantly share code, notes, and snippets.

@SaitoWu
Created June 28, 2012 06:51
Show Gist options
  • Save SaitoWu/3009575 to your computer and use it in GitHub Desktop.
Save SaitoWu/3009575 to your computer and use it in GitHub Desktop.
Grack Server.
# install
# git clone https://github.com/SaitoWu/grack.git
# cd grack
# rake install
require 'grack'
config = {
:project_root => "/Users/saito/Develop/Repositories/",
:git_path => '/usr/bin/git',
:upload_pack => true,
:receive_pack => true,
}
module Grack
class Auth < Rack::Auth::Basic
# implement ur valid? method.
def valid?
true
end
end
end
run Grack::Bundle.new(config)
# rackup -p 3000
# git clone http://localhost:3000/xx.git
# Yeeeah.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment