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 non-blocking I/O HTTP and WebSocket server built around the very well tested and reliable Mojo::Server::Daemon with
To start applications with it you can use the morbo script.
$ morbo myapp.pl Server available at http://127.0.0.1:3000.
Optional modules EV (4.0+), IO::Socket::IP (0.16+) and IO::Socket::SSL (1.75+) are supported transparently and used if installed. Individual features can also be disabled with the
MOJO_NO_TLS environment variables.
See Mojolicious::Guides::Cookbook for more.
Mojo::Server::Morbo implements the following attributes.
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
templates directories in the current working directory.
my $success = $morbo->check_file('/home/sri/lib/MyApp.pm');
Check if file has been modified since last check.
Run server for application.