Skip to content

Instantly share code, notes, and snippets.

@shelling
Created December 25, 2011 12:53
Show Gist options
  • Select an option

  • Save shelling/1519208 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/1519208 to your computer and use it in GitHub Desktop.
use lib qw(lib);
use Plack::Builder;
use Mojo::Server::PSGI;
builder {
return sub {
$ENV{MOJO_APP} ||= 'Hello';
Mojo::Server::PSGI->new->run(@_)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment