git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gitweb: Add support for running gitweb as FastCGI script
@ 2010-05-07 12:54 Jakub Narebski
  2010-05-07 12:54 ` [PATCH/RFC 1/2] gitweb: Put all per-connection code in run() subroutine Jakub Narebski
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Jakub Narebski @ 2010-05-07 12:54 UTC (permalink / raw)
  To: git
  Cc: Jakub Narebski, Sam Vilain, Eric Wong, Juan Jose Comellas,
	Peter Vereshagin, John Goerzen

This series requires the following patch:

  [PATCH 3/5] gitweb: Use nonlocal jump instead of 'exit' in die_error
  http://article.gmane.org/gmane.comp.version-control.git/145678

which is present as c42b00c commit in 'pu', as part of
'jn/gitweb-caching-prep' branch, which was merged into 'pu' at
97153ab7.


This patch adds support for FastCGI directly to gitweb.perl (so it
would be present in gitweb.cgi); selecting between FastCGI and CGI
is done via command-line switch (command-line option).  It uses
CGI::Fast, which is core Perl module.

It is port of old patch by Sam Vilain from 2006 to new gitweb
announced in

  "Re: gitweb testing with non-apache web server"
  http://article.gmane.org/gmane.comp.version-control.git/24718

The preparatory patch is refactoring work, to not need to have request
loop around large parts of code.  I think the preparatory patch makes
gitweb code more clean.


The alternate solution would be to add gitweb.fcgi wrapper, like e.g.:
in the following patch by Eric Wong

  "[PATCH 1/2] gitweb: add a simple wrapper for FCGI support"
  http://thread.gmane.org/gmane.comp.version-control.git/35920/focus=35921

which was part of the "[0/2 PATCH] FastCGI and nginx support for gitweb"
series.  (Note that the patch does 'do $gitweb_cgi;' without checking for
errors, see the bottom of `perldoc -f do` documentation on how it should
be done).


Some other references:
* "GitWeb in FastCGI" by Peter Vereshagin
  http://thread.gmane.org/gmane.comp.version-control.git/142132
* "FastCGI support in gitweb" by Juan Jose Comellas
  http://thread.gmane.org/gmane.comp.version-control.git/75704

Table of contents:
~~~~~~~~~~~~~~~~~~
 [PATCH/RFC 1/2] gitweb: Put all per-connection code in run() subroutine
 [PATCH/RFC 2/2] gitweb: Add support for FastCGI, using CGI::Fast

Jakub Narebski (1):
  gitweb: Put all per-connection code in run() subroutine

Sam Vilain (1):
  gitweb: Add support for FastCGI, using CGI::Fast

Diffstat:
~~~~~~~~~

 gitweb/gitweb.perl |  409 ++++++++++++++++++++++++++++++++--------------------
 1 files changed, 255 insertions(+), 154 deletions(-)

Diffstat -w:
~~~~~~~~~~~~
When ignoring whitespace change (reindenting)

 gitweb/gitweb.perl |  117 ++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 109 insertions(+), 8 deletions(-)

-- 
Jakub Narebski

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2010-05-18  1:05 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 12:54 [PATCH 0/2] gitweb: Add support for running gitweb as FastCGI script Jakub Narebski
2010-05-07 12:54 ` [PATCH/RFC 1/2] gitweb: Put all per-connection code in run() subroutine Jakub Narebski
2010-05-07 12:54 ` [RFC/PATCH 2/2] gitweb: Add support for FastCGI, using CGI::Fast Jakub Narebski
2010-05-08  7:59   ` [RFC/PATCHv2 " Jakub Narebski
2010-05-08 22:41 ` [PATCH 0/2] gitweb: Add support for running gitweb as FastCGI script Jakub Narebski
2010-05-09  9:31   ` Eric Wong
2010-05-09 11:48     ` Ævar Arnfjörð Bjarmason
2010-05-09 12:39     ` Jakub Narebski
2010-05-09 16:47       ` Peter Vereshagin
2010-05-09 18:18         ` Jakub Narebski
2010-05-10  7:13           ` Peter Vereshagin
2010-05-10 15:29             ` Jakub Narebski
2010-05-11  6:24               ` Peter Vereshagin
2010-05-11  8:35                 ` Petr Baudis
2010-05-11 10:58                 ` Jakub Narebski
2010-05-11 12:09                   ` Peter Vereshagin
2010-05-11 13:51                     ` Jakub Narebski
2010-05-13 13:10                       ` Peter Vereshagin
2010-05-13 17:13                         ` Ævar Arnfjörð Bjarmason
2010-05-14 15:58                           ` Peter Vereshagin
2010-05-14 10:53                         ` Jakub Narebski
2010-05-14 15:36                           ` Peter Vereshagin
2010-05-14 17:58                             ` Jakub Narebski
2010-05-14 18:43                               ` Jakub Narebski
2010-05-15 10:06                               ` Peter Vereshagin
2010-05-15 13:58                                 ` Jakub Narebski
2010-05-16 10:15                                   ` Peter Vereshagin
2010-05-18  1:06                                     ` Jakub Narebski
2010-05-16 10:26                                   ` Petr Baudis
2010-05-15 11:51                           ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).