git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Jakub Narebski
Message 1 of 7 in “gitweb: Proof of concept of PSGI interface”
  1. 0/5 gitweb: Proof of concept of PSGI interfaceJakub Narebski, Mar 3, 2012
  2. 1/5 gitweb: Jump do DONE_REQUEST not DONE_GITWEB on errorJakub Narebski, Mar 3, 2012
  3. 2/5 gitweb: Prepare for splitting gitwebJakub Narebski, Mar 3, 2012
  4. 3/5 gitweb: Enable running gitweb as PSGI app, via CGI::Emulate::PSGIJakub Narebski, Mar 3, 2012
  5. 4/5 gitweb.psgi: Allow passing arguments to Plack::RunnerJakub Narebski, Mar 3, 2012
  6. 5/5 git-instaweb: Use new PSGI interface mode of gitwebJakub Narebski, Mar 3, 2012
  7. 6/5 gitweb.psgi: Use installed static files, if they are availableJakub Narebski, Mar 8, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.