[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: [foros] [cgiapp] Minimizing mod_perl server restarts with CGI::Apps


I'ld love to start trying some scripts with mod_perl.

But in the optimization of my learning slope I don't find a way of
integrating the great benefits of Apache's mod_perl with perls' scripts
I might have to write for other servers.

I use Apache 2, like most of the world. 
But I wouldn't select only programmer jobs for Apache server owners.

Does anybody have a way of integrating mod_perl scripts style in other
servers? I would like to start writing those sort of scripts. 

This is the only reason why I keep on delaying my studies of mod_perl.

On mar, 2004-04-27 at 12:44, Mark Stosberg wrote:

> Hello,
> 
> I've begun using CGI::App with mod_perl. For the most part, it works
> extremely easily. Most of the time our code runs without modification
> under CGI and mod_perl, and using Apache::Reload the server rarely needs
> to be restarted.
> 
> However, I've found that in some casees where functions are exported
> from one package to another, a server restart can still be required. 
> 
> I'm suspecting now that removing a 'package' declaration line from
> instance scripts will fix this. (I have often put the instance script
> in the samem package as the CGI::App it runs). 
> 
> Are there any other tips to minimize mod_perl reloading, specific to
> CGI::App? In general, it seems like CGI::App is already designed to
> minimize this by putting nearly all code in modules.
> 
> 	Mark

-- 
     .
     .                    +-+-+-+-+-+-+-+ +-+-+-+-+-+-+ +-+-+-+-+-+-+-+
    J@                    |A|l|b|e|r|t|o| |A|d|r|i|a|n| |S|c|h|i|a|n|o|
    MR                    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 gmQ?WMQg.......mgkMYHBW9m..  |a|l|e|t|i|a|@|2|v|i|a|s|.|c|o|m|.|a|r|
d# .=    ?"?""7!          ,Ne +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
?N,        ..J+dMMMM%      .He
 .THQmmmqKT8?!          .g#5!W&.                \|||/
 ....     ..JMMMMMN,   ." .m.  N,               (o o)
.M"?7   suppressed            ,M| +-------oooO--(_)-----------+
MF    .M#! ..M""?T^      ?h.. J#^  |http://bol.sourceforge.net |
?Np..M#3  .MF  ..,         Jr  M   |get UR Book of Life 4 FREE |
  ?"7`   .M= .M9"'         J$ .^   | JAVA+XML 4 every desktop! |
        .M` .F            ?D  ?M   +------------------Ooo------+
       .M'  JF                 M%              |__|__|
   ?kHB^   .MF          .Jg+ggH^                || ||
           g#         .#"!                     ooO Ooo
           "         ,^                                     \---------/
   $     :                 \-/                              |  2004   |
    "9  `                 J|a|v|E http://www.jave.de/       |ARGENTINA|
                           /-\                              /---------\



Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.