NAME

Mojo::Server::Morbo - DOOOOOOOOOOOOOOOOOOM!

SYNOPSIS

use Mojo::Server::Morbo;

DESCRIPTION

Mojo::Server::Morbo is a HTTP 1.1 and WebSocket development server. Note that this module is EXPERIMENTAL and might change without warning!

ATTRIBUTES

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

app

my $app = $morbo->app;
$morbo  = $morbo->app('/home/sri/myapp.pl');

Application script.

listen

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

List of ports and files 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.

run

$morbo->run;

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.