Unix and Linux Discussions Tagged with openserver |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
8,069 |
SCO |
|
|
|
2 |
11,334 |
SCO |
|
|
|
63 |
15,862 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
4,403 |
SCO |
|
|
|
1 |
3,178 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,868 |
SCO |
|
|
|
5 |
6,875 |
SCO |
|
|
|
1 |
5,190 |
Filesystems, Disks and Memory |
|
|
|
1 |
2,730 |
IP Networking |
|
|
|
2 |
3,512 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,621 |
IP Networking |
|
|
|
1 |
3,219 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,060 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,359 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,822 |
IP Networking |
|
|
|
2 |
4,038 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,040 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,989 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,918 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,378 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,585 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,959 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,553 |
UNIX for Dummies Questions & Answers |
Mojo::Server::Morbo(3pm) User Contributed Perl Documentation Mojo::Server::Morbo(3pm)
NAME
Mojo::Server::Morbo - DOOOOOOOOOOOOOOOOOOM!
SYNOPSIS
use Mojo::Server::Morbo;
my $morbo = Mojo::Server::Morbo->new;
$morbo->run('./myapp.pl');
DESCRIPTION
Mojo::Server::Morbo is a full featured self-restart capable non-blocking I/O HTTP 1.1 and WebSocket server built around the very well
tested and reliable Mojo::Server::Daemon with "IPv6", "TLS" and "libev" support.
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, IO::Socket::INET6 and IO::Socket::SSL are supported transparently and used if 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 $success = $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>.
perl v5.14.2 2012-09-05 Mojo::Server::Morbo(3pm)