Mojolicious::Plugin::MountPSGI - Mount PSGI apps
# Mojolicious $self->plugin('MountPSGI', { '/', => 'ext/MyApp/app.psgi'}); # Mojolicious::Lite plugin 'MountPSGI', { '/', => 'ext/MyApp/app.psgi' };
Mojolicious::Plugin::MountPSGI lets you mount any PSGI app inside a Mojolicious app. For instance you could use this to deploy your PSGI app under hypnotoad, or to include a PSGI app inside a path inside your Mojo app.
Mojolicious::Plugin::MountPSGI inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register plugin in Mojolicious application.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
Most of this module was assembled from the Mojo mount plugin and the Mojolicious-Plugin-PlackMiddleware plugin. Copyright on that code belongs to the authors.
The remainder is (C) 2011 Marcus Ramberg
Licensed under the same terms as Perl itself.
To install Mojolicious::Plugin::MountPSGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::MountPSGI
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::MountPSGI
For more information on module installation, please visit the detailed CPAN module installation guide.