Jifty::Server - Stand-alone server implementation for Jifty
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".
Calls "handle_request" in Jifty::Handler with the CGI object. If running tests, send test warnings on specific requests.
Sends the HTTP status header.
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}
Sets up the arguments needed for restarting the server using jifty server.
jifty server
Closes all active client connections.
After starting, ensure we have a different database socket from the server.
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.