1Mojo::Server::Morbo(3)User Contributed Perl DocumentationMojo::Server::Morbo(3)
2
3
4

NAME

6       Mojo::Server::Morbo - Tonight at 11...DOOOOOOOOOOOOOOOM!
7

SYNOPSIS

9         use Mojo::Server::Morbo;
10
11         my $morbo = Mojo::Server::Morbo->new;
12         $morbo->run('/home/sri/myapp.pl');
13

DESCRIPTION

15       Mojo::Server::Morbo is a full featured, self-restart capable non-
16       blocking I/O HTTP and WebSocket server, built around the very well
17       tested and reliable Mojo::Server::Daemon, with IPv6, TLS, SNI, UNIX
18       domain socket, Comet (long polling), keep-alive and multiple event loop
19       support. Note that the server uses signals for process management, so
20       you should avoid modifying signal handlers in your applications.
21
22       To start applications with it you can use the morbo script.
23
24         $ morbo ./myapp.pl
25         Web application available at http://127.0.0.1:3000
26
27       For better scalability (epoll, kqueue) and to provide non-blocking name
28       resolution, SOCKS5 as well as TLS support, the optional modules EV
29       (4.32+), Net::DNS::Native (0.15+), IO::Socket::Socks (0.64+) and
30       IO::Socket::SSL (2.009+) will be used automatically if possible.
31       Individual features can also be disabled with the "MOJO_NO_NNR",
32       "MOJO_NO_SOCKS" and "MOJO_NO_TLS" environment variables.
33
34       See "DEPLOYMENT" in Mojolicious::Guides::Cookbook for more.
35

SIGNALS

37       The Mojo::Server::Morbo process can be controlled at runtime with the
38       following signals.
39
40   INT, TERM
41       Shut down server immediately.
42

ATTRIBUTES

44       Mojo::Server::Morbo implements the following attributes.
45
46   backend
47         my $backend = $morbo->backend;
48         $morbo      = $morbo->backend(Mojo::Server::Morbo::Backend::Poll->new);
49
50       Backend, usually a Mojo::Server::Morbo::Backend::Poll object.
51
52   daemon
53         my $daemon = $morbo->daemon;
54         $morbo     = $morbo->daemon(Mojo::Server::Daemon->new);
55
56       Mojo::Server::Daemon object this server manages.
57
58   silent
59         my $bool = $morbo->silent;
60         $morbo   = $morbo->silent($bool);
61
62       Disable console messages, defaults to a true value.
63

METHODS

65       Mojo::Server::Morbo inherits all methods from Mojo::Base and implements
66       the following new ones.
67
68   run
69         $morbo->run('script/my_app');
70
71       Run server for application and wait for "SIGNALS".
72

SEE ALSO

74       Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
75
76
77
78perl v5.32.1                      2021-02-07            Mojo::Server::Morbo(3)
Impressum