GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::LOADER::SHOTGUN (3)

.ds Aq ’

NAME

Plack::Loader::Shotgun - forking implementation of plackup

CONTENTS

SYNOPSIS



  plackup -L Shotgun



DESCRIPTION

Shotgun loader delays the compilation and execution of your application until the runtime. When a new request comes in, this forks a new child, compiles your code and runs the application.

This should be an ultimate alternative solution when reloading with Plack::Middleware::Refresh doesn’t work, or plackup’s default -r filesystem watcher causes problems. I can imagine this is useful for applications which expects their application is only evaluated once (like in-file templates) or on operating systems with broken fork implementation, etc.

This is much like good old CGI’s fork and run but you don’t need a web server, and there’s a benefit of preloading modules that are not likely to change. For instance if you develop a web application using Moose and DBIx::Class,



  plackup -MMoose -MDBIx::Class -L Shotgun yourapp.psgi



would preload those modules and only re-evaluates your code in every request.

AUTHOR

Tatsuhiko Miyagawa with an inspiration from <http://github.com/rtomayko/shotgun>

SEE ALSO

plackup
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::LOADER::SHOTGUN (3) 2015-06-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.