The reason you don't need restarts is because it loads everything on every request, like with CGI. That's slow and horrible. mod_perl has startup.pl[1] which helps deal with it, and on the Plack::Handler::Apache2[2] there's an example in the synopsis on handling the same thing[3].

[1] http://perl.apache.org/docs/1.0/guide/config.html
[2] https://metacpan.org/module/Plack::Handler::Apache2
[3]
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/path/to/app.psgi");
</Perl>

On Thu, Aug 16, 2012 at 2:20 PM, gurugeek <gurugeekphp@gmail.com> wrote:

Indeed.

Depending on the deployment method, it may be possible to add a hook to
restart the app automatically on git push or similar perhaps.

Wouldn't work so well for someone SFTP'ing their app up of course :)
_______________________________________________

I have just opened http://dancer.2.ai/perl connecting via SFP and using cyberduck (edit with) and added a yes
<li><font color=B8C76F> YOUR WEBSPACE IS READY yes </li>
http://dancer.2.ai/perl

without restarting anything it loads the new text but again this is fairly simple test app :) still from my tests it looks like you do not need a restart with Plack::Handler::Apache2 ?

_______________________________________________
Dancer-users mailing list
Dancer-users@perldancer.org
http://www.backup-manager.org/cgi-bin/listinfo/dancer-users