Mojo::Server::PSGI - PSGI Server
# myapp.psgi use Mojo::Server::PSGI; my $psgi = Mojo::Server::PSGI->new(app_class => 'MyApp'); my $app = sub { $psgi->run(@_) };
Mojo::Server::PSGI allows Mojo applications to run on all PSGI compatible servers.
Mojo::Server::PSGI inherits all methods from Mojo::Server and implements the following new ones.
run
my $res = $psgi->run($env);
Mojolicious, Mojolicious::Book, http://mojolicious.org.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.