Provided by: libmojolicious-perl_4.63+dfsg-1_all
NAME
Mojo::Server::Morbo - DOOOOOOOOOOOOOOOOOOM!
SYNOPSIS
use Mojo::Server::Morbo; my $morbo = Mojo::Server::Morbo->new; $morbo->run('/home/sri/myapp.pl');
DESCRIPTION
Mojo::Server::Morbo is a full featured, self-restart capable non-blocking I/O HTTP and WebSocket server, built around the very well tested and reliable Mojo::Server::Daemon, with IPv6, TLS, Comet (long polling), keep-alive, connection pooling, timeout, cookie, multipart and multiple event loop support. Note that the server uses signals for process management, so you should avoid modifying signal handlers in your applications. To start applications with it you can use the morbo script. $ morbo myapp.pl Server available at http://127.0.0.1:3000. For better scalability (epoll, kqueue) and to provide IPv6 as well as TLS support, the optional modules EV (4.0+), IO::Socket::IP (0.16+) and IO::Socket::SSL (1.75+) will be used automatically by Mojo::IOLoop if they are installed. Individual features can also be disabled with the MOJO_NO_IPV6 and MOJO_NO_TLS environment variables. See Mojolicious::Guides::Cookbook for more.
ATTRIBUTES
Mojo::Server::Morbo implements the following attributes. watch my $watch = $morbo->watch; $morbo = $morbo->watch(['/home/sri/myapp']); Files and directories to watch for changes, defaults to the application script as well as the "lib" and "templates" directories in the current working directory.
METHODS
Mojo::Server::Morbo inherits all methods from Mojo::Base and implements the following new ones. check_file my $bool = $morbo->check_file('/home/sri/lib/MyApp.pm'); Check if file has been modified since last check. run $morbo->run('script/myapp'); Run server for application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.