Mojo::Server::Morbo man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Server::Morbo(3)User Contributed Perl DocumentatioMojo::Server::Morbo(3)

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", "Bonjour"
       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::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!

ATTRIBUTES
       Mojo::Server::Morbo implements the following attributes.

   "listen"
	 my $listen = $morbo->listen;
	 $morbo	    = $morbo->listen(['http://*:3000']);

       List of one or more locations to listen on, defaults to
       "http://*:3000".

   "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"
	 $morbo->check_file('script/myapp');

       Check if file has been modified since last check.

   "run"
	 $morbo->run('script/myapp');

       Start server.

DEBUGGING
       You can set the "MORBO_DEBUG" environment variable to get some advanced
       diagnostics information printed to "STDERR".

	 MORBO_DEBUG=1

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-01		Mojo::Server::Morbo(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net