Created
March 27, 2010 13:54
-
-
Save miyagawa/346068 to your computer and use it in GitHub Desktop.
Running gitweb.cgi on Plack
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
# 1. Download git and make gitweb/gitweb.cgi (See gitweb/INSTALL how to set gitweb root etc.) | |
# 2. Copy this file as gitweb/app.psgi | |
# 3. cd gitweb; plackup | |
# 4. Access http://localhost:3000/gitweb.cgi | |
use Plack::Builder; | |
use Plack::App::WrapCGI; | |
use Plack::App::File; | |
builder { | |
mount "/gitweb.cgi" => Plack::App::WrapCGI->new(script => "gitweb.cgi")->to_app; | |
mount "/" => Plack::App::File->new(root => '.')->to_app; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment