| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |
Mojo::Server::Morbo - DOOOOOOOOOOOOOOOOOOM!
use Mojo::Server::Morbo;
my $morbo = Mojo::Server::Morbo->new;
$morbo->run('./myapp.pl');
Mojo::Server::Morbo is a full featured self-restart capable async io HTTP
1.1 and WebSocket server built around the very well tested and reliable
Mojo::Server::Daemon with IPv6, TLS, Bonjour, epoll and
kqueue support.
To start applications with it you can use the morbo script.
% morbo myapp.pl
Optional modules IO::KQueue, IO::Epoll, IO::Socket::IP, IO::Socket::SSL and Net::Rendezvous::Publish are supported transparently and used if installed.
Note that this module is EXPERIMENTAL and might change without warning!
Mojo::Server::Morbo implements the following attributes.
listenmy $listen = $morbo->listen; $morbo = $morbo->listen(['http://*:3000']);
List of ports and files to listen on, defaults to http://*:3000.
watchmy $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.
Mojo::Server::Morbo inherits all methods from Mojo::Base and implements the following new ones.
run $morbo->run('script/myapp');
Start server.
You can set the MORBO_DEBUG environment variable to get some advanced
diagnostics information printed to STDERR.
MORBO_DEBUG=1
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |