[RFC/PATCH 0/5] gitweb: Proof of concept of PSGI interface
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 3, 2012, 17:56 UTC
- Message-ID
- <1330797423-22926-1-git-send-email-jnareb@gmail.com>
The major goal of this series is to make it possible for gitweb to run as PSGI application, even if non-native (emulated).
PSGI[1][2] is an interface between Perl web applications and web servers. It is accompanied by Plack, a Perl module and toolkit that contains PSGI middleware (e.g. for serving static files), helpers (e.g. 'plackup' command line launcher) and adapters to web servers (e.g. to CGI, FastCGI, or mod_perl). PSGI and Plack are inspired by Python's WSGI and Ruby's Rack.
[1]: http://plackperl.org [2]: http://search.cpan.org/perldoc?PSGI [3]: http://advent.plackperl.org
First two patches are independent improvements, and make sense even outside this patch series. Last patch is making use of gitweb as PSGI in "git instaweb --httpd=plackup".
Jakub Narebski (5): gitweb: Jump do DONE_REQUEST not DONE_GITWEB on error gitweb: Prepare for splitting gitweb gitweb: Enable running gitweb as PSGI app, via CGI::Emulate::PSGI gitweb.psgi: Allow passing arguments to Plack::Runner git-instaweb: Use new PSGI interface mode of gitweb
Documentation/gitweb.txt | 16 +++++++ git-instaweb.sh | 33 +++------------ gitweb/INSTALL | 3 + gitweb/Makefile | 14 ++++++- gitweb/README | 13 +++++- gitweb/gitweb.perl | 98 +++++++++++++++++++++++++++++++++++++++++++--- 6 files changed, 141 insertions(+), 36 deletions(-)
-- 1.7.9