use Mojo::Server::Morbo; my $morbo = Mojo::Server::Morbo->new; $morbo->run('/home/sri/myapp.pl');
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 non-blocking name resolution, SOCKS5 as well as TLS support, the optional modules EV (4.0+), Net::DNS::Native (0.15+), IO::Socket::Socks (0.64+) and IO::Socket::SSL (2.009+) will be used automatically if possible. Individual features can also be disabled with the "MOJO_NO_NNR", "MOJO_NO_SOCKS" and "MOJO_NO_TLS" environment variables.
See ``DEPLOYMENT'' in Mojolicious::Guides::Cookbook for more.
my $backend = $morbo->backend; $morbo = $morbo->backend(Mojo::Server::Morbo::Backend::Poll->new);
Backend, usually a Mojo::Server::Morbo::Backend::Poll object.
my $daemon = $morbo->daemon; $morbo = $morbo->daemon(Mojo::Server::Daemon->new);
Mojo::Server::Daemon object this server manages.
$morbo->run('script/my_app');
Run server for application and wait for ``SIGNALS''.