Created
June 28, 2012 06:51
Grack Server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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