The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Restarter - Restart the standalone server

SYNOPSIS

DEPRECATED. Use Plack::Loader::Reloadble or plackup's -r option.

DESCRIPTION

This middleware forks the main standalone server and creates a watcher that watches the filesystem in the current directory and restarts the server process by sending HUP when it finds an updated file. This middleware might be handy for a quick restart in the development but not recommended to use on the production environment.

CONFIGURATION

directories
  enable "Plack::Middleware::Restarter",
      directories => "/path/to/app";

Specifies which directory to watch for file updates. Defaults to . (current directory).

filter
  enable "Plack::Middleware::Restarter",
      filter => qr/\.pm$/;

The regular expression filter to match what files to watch for updates. Defaults to \.(pm|yml|yaml|conf|psgi)$.

PORTABILITY

This module might not work on Win32/VMS systems.

AUTHOR

Tokuhiro Matsuno