Skip to content

Instantly share code, notes, and snippets.

@SaitoWu
Created June 28, 2012 06:51
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