[Jifty-commit] jifty branch, master, updated. fa0386fd00428e4334d77e693e42846d9df1fc62

Jifty commits jifty-commit at lists.jifty.org
Fri Mar 5 01:38:42 EST 2010


The branch, master has been updated
       via  fa0386fd00428e4334d77e693e42846d9df1fc62 (commit)
      from  3bc507fde235d21d92f704722098568d8270c3ef (commit)

Summary of changes:
 lib/Jifty/Script/ModPerl2.pm |   72 ------------------------------------------
 1 files changed, 0 insertions(+), 72 deletions(-)
 delete mode 100755 lib/Jifty/Script/ModPerl2.pm

- Log -----------------------------------------------------------------
commit fa0386fd00428e4334d77e693e42846d9df1fc62
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Mar 5 14:38:23 2010 +0800

    kill Jifty::Script::ModPerl5

diff --git a/lib/Jifty/Script/ModPerl2.pm b/lib/Jifty/Script/ModPerl2.pm
deleted file mode 100755
index 2d3ca1f..0000000
--- a/lib/Jifty/Script/ModPerl2.pm
+++ /dev/null
@@ -1,72 +0,0 @@
-package Jifty::Script::ModPerl2;
-use strict;
-use warnings;
-
-use Apache2::Const -compile => qw(OK);
-use Jifty::Everything;
-use CGI;
-
-# XXX: can we turn it into a command line script and at the same time use it as
-# as handler?
-
-=head1 NAME
-
-Jifty::Script::ModPerl2 - a ModPerl2 handler for your jifty app.
-
-=head1 SYNOPSIS
-
-    <VirtualHost *:80>
-        DocumentRoot /path/to/base/dir/of/app
-        SetHandler perl-script
-        PerlHandler Jifty::Script::ModPerl2
-    </VirtualHost>
-
-Not a command line script. Read --man for more info.
-
-=head1 DESCRIPTION
-
-This handler should be used with Apache2 and ModPerl2.  It requires the
-DocumentRoot of its VirtualHost to be set to the base directory of your
-jifty application.
-
-Here is the relevant minimal httpd.conf section:
-
-  <VirtualHost *:80>
-    DocumentRoot /path/to/base/dir/of/app
-    SetHandler perl-script
-    PerlHandler Jifty::Script::ModPerl2
-  </VirtualHost>
-
-It would not necessarily need to be a VirtualHost- could be a Directory,
-and should configure about the same.
-
-TODO: This should be set up to serv the static files without mod_perl.
-
-=head1 METTHODS
-
-=head2 handler
-
-The mod_perl handler for the app
-
-=cut
-
-sub handler {
-
-    ##
-    # Fire up jifty
-    chdir($ENV{'DOCUMENT_ROOT'});
-    Jifty->new() unless (Jifty->handler());
-
-    ##
-    # Fix the path to work with CGI
-    $ENV{'PATH_INFO'} = $ENV{'REQUEST_URI'};
-    my $cgi = new CGI;
-
-    Jifty->handler->handle_request(cgi => $cgi);
-
-    ##
-    # Oll Korrect
-    return Apache2::Const::OK;
-}
-
-1;

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list