Egg::Plugin::Debug::Bar - Plugin to bury bar for debugging under contents for Egg.


Egg-Release documentation  | view source Contained in the Egg-Release distribution.

Index


NAME

Top

Egg::Plugin::Debug::Bar - Plugin to bury bar for debugging under contents for Egg.

SYNOPSIS

Top

  use Egg qw/ Debug::Bar /;

  # dispatch.fcgi

  #!/usr/local/bin/perl
  BEGIN {
    $ENV{EXAMPLE_REQUEST_CLASS} ||= 'Egg::Request::FastCGI';
  #  $ENV{EGGRELEASE_FCGI_LIFE_COUNT} = 0;
  #  $ENV{EGGRELEASE_FCGI_LIFE_TIME}  = 0;
    $ENV{EGGRELEASE_FCGI_RELOAD}     = 1;
    };
  use lib "/path/to/MyApp/lib";
  use MyApp;
  MyApp->handler;

DESCRIPTION

Top

This plugin buries the bar for debugging under the upper part of contents at debug mode.

When it is operated by FastCGI, this is convenient. The useful function that can be used in other platforms is not provided.

$ENV{EGGRELEASE_FCGI_RELOAD} of the trigger script for FastCGI is set and used. Then, the button named Reboot appears in the bar. When the FastCGI process falls and it will be requested that this button be pushed when the application is developed next time, come do the reload of the project.

It comes do not to have to reactivate the WEB server when developing by this.

Especially, it is Module::Refresh in FastCGI. However, I think it is convenient when this plugin is used by Ki or do not exist.

Besides, it might be good to set $ENV{EGGRELEASE_FCGI_LIFE_COUNT} and $ENV{EGGRELEASE_FCGI_LIFE_TIME}, etc. Please see at the document of Egg::Request::FastCGI in detail.

SEE ALSO

Top

Egg::Release, Egg::Request::FastCGI,

AUTHOR

Top

Masatoshi Mizuno <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release documentation  | view source Contained in the Egg-Release distribution.