Re: [Catalyst] C::E::HTTP::PreFork deployment

2010-11-30 Thread Ashley Pond V
On Tue, Nov 30, 2010 at 7:04 AM, Edmund von der Burg
 wrote:
> Hello,
>
> Currently I run several Catalyst apps under lighttpd using fastcgi.
> I'd like to switch to them being HTTP::Prefork.

A very incomplete answer but I'd suggest adding PSGI/Starman to the
list of things you look at. It's HUPable for restarts though I don't
think anyone has written a file-watcher style hook to do that (yet)
and can have workers added and removed with signals. With things like
Plack::Builder you can make all kinds of tremendously powerful
deployment choices pretty simple.

I have a stub git repo for a starman service script:
https://github.com/pangyre/p5-cat-starman-daemon (there is nothing
there now but I do have a good skeleton that isn't committed/pushed. I
was hoping to round out / generalize it in time for an advent entry.
As well as a P::Builder thing... anyone seen my tuits? They were
round, once.

-ashley

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] C::E::HTTP::PreFork deployment

2010-11-30 Thread Edmund von der Burg
Hello,

Currently I run several Catalyst apps under lighttpd using fastcgi.
I'd like to switch to them being HTTP::Prefork.


Are there any sample setups that I can refer to - especially that illustrate:

* several apps on one IP address (hostname based routing)

* restarting app when new code is available

* serving static assets (or is C::P::Static the way to go)

I'm not really fussed what the frontend is - it could be lighttpd or
nginx or perlbal or ...

My main aim is to make my dev and production environments more similar
and get greater control over the number of processes running.

Cheers,
  Edmund.

PS I've read http://wiki.catalystframework.org/wiki/deployment but
want an example running on a non-standard port.

-- 
Edmund von der Burg - e...@ecclestoad.co.uk
mob: +44 7903 420 689
web: http://www.ecclestoad.co.uk/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/