[Catalyst] Configuration based on hostname

2009-07-12 Thread Mihai Bazon
Hi folks, I think this was raised before but I don't remember to have seen a satisfactory answer. Someone please point me into the right direction. I want to deploy a Catalyst app that will be used to serve multiple websites. The platform will be Apache2 (prefork) + mod_perl2. I want Catalyst

Re: [Catalyst] Configuration based on hostname

2009-07-12 Thread Mihai Bazon
Kieren Diment dim...@gmail.com wrote: On 12/07/2009, at 4:35 PM, Mihai Bazon wrote: Hi folks, I think this was raised before but I don't remember to have seen a satisfactory answer. Someone please point me into the right direction. I want to deploy a Catalyst app

Re: [Catalyst] Serving static content from DB

2009-06-07 Thread Mihai Bazon
only once. For most requests, the Perl handler steps in only to check that the cached file is up-to-date. Moreover, the cache is outside the document_root, which is many times convenient. Cheers, -Mihai Cosimo Streppone cos...@streppone.it wrote: Mihai Bazon mi...@bazon.net wrote: John

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Mihai Bazon
I'm doing pretty much the same thing, although I dislike the fact that declaring/exporting constants tends to be very verbose. You have to name those constants both in use constant and when declaring them in EXPORT_OK and/or EXPORT_TAGS. The following sample is what suits me best for now: