[Dancer-users] perl dance multiple hosting @dotgeek
Alex Knowles
alexk at moonfruit.com
Thu Aug 16 11:33:27 CEST 2012
On 16/08/12 10:30, Stéphane Wenric wrote:
> Perhaps something like supervisor, or nodemon, but adapted to Perl
> frameworks, could be of use :
>
> http://www.hacksparrow.com/node-js-restart-on-file-change.html
> http://remysharp.com/2010/10/12/nodejs-rapid-development-nodemon/
>
> They're small utilities which restart your node.js server when they
> detect that a js file has been modified.
well there's Module::Refresh (which is already built into dancer), but
you could put the following in a specific route and it would reload the
code afaik:
get '/restart' => sub {
Module::Refresh->refresh;
};
or something?
a
>
> 2012/8/16 David Precious <davidp at preshweb.co.uk
> <mailto:davidp at preshweb.co.uk>>
>
> On Thu, 16 Aug 2012 11:11:13 +0300
> sawyer x <xsawyerx at gmail.com <mailto:xsawyerx at gmail.com>> wrote:
>
> > An important question would be restarts, IMHO.
> > Since you're doing this properly (PSGI, FastCGI, Starman, etc.),
> > you'll have a service (fcgid, Starman, whatever) running all the
> > time, you'll need to make it possible for the users to restart it.
>
> 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 :)
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org <mailto:Dancer-users at perldancer.org>
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120816/1118eca6/attachment-0001.htm>
More information about the Dancer-users
mailing list