Jifty::Server - Standalone web server for Jifty applications
use Jifty::Server; my $server = Jifty::Server->new(); $server->run();
Jifty::Server is a subclass of HTTP::Server::Simple which creates a handy standalone web server for a lightweight Jifty application.
Jifty::Server
Creates a new Jifty::Server object.
Sets up the Jifty singleton. This is called automatically by "new".
Overrives HTML::Server::Simple::Mason's handle_request method to make use of Module::Refresh to refresh any relevant modules, as well as to set up the $JiftyWeb global before handling the actual request.
$JiftyWeb
Overrives HTML::Server::Simple::Mason's print_banner to use the logging framework to record the server's startup
Returns the filename prefix used if HTTP::Server::Simple::Recorder support is being used.
Sets this server to use HTTP::Server::Simple::Recorder.
(See also the JIFTY_RECORD environment variable and the -r switch to standalone_server.)
JIFTY_RECORD
-r
standalone_server
If $ENV{JIFTY_SERVER_SIGREADY} is set, send the signal to the parent when the server is ready for requests.
$ENV{JIFTY_SERVER_SIGREADY}
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.