NAME

Cake::Server::Simple

SYNOPSIS

use Cake::Server::Simple;
use App;

my $app = sub {
    my $env = shift;
    App->bake($env)->serve();
};

my $server = Cake::Server::Prefork->new(
    port => 8080,
    host => 'localhost',
    prefork => 2 ##number of child process
);

$server->run($app);

1;

DESCRIPTION

Cake embeded development server, mainly for testing and development purposes, but can work with simple projects too This server is meant to act kinda like Plack servers so you can port your code to plack later if you want.

OPTIONS

port

port number to listen to

host

prefork

set number of child processes to prefork, value must be a number 1 and more you can omit this option completely and the server will be event based