[Dancer-users] Deployment pod
punk.kish at gmail.com
Thu Nov 10 01:14:01 CET 2011
On Nov 9, 2011, at 5:59 PM, Assaf Gordon wrote:
> Puneet Kishor wrote, On 11/09/11 18:47:
>> Very nice. But, I don't get why is it that I am able to run several Starman powered Dancer apps behind Apache front-end without every having declared the behind_proxy setting in the config file.
> Indeed interesting - it didn't work for me (and for several others, based on recent emails).
> The only problem with not enabling "behind_proxy" is that "request->uri_for" and "request->uri_base" return links that start with "http://127.0.0.1:3000" .
> Perhaps you have some special Apache configuration ? and proxying not through TCP ? or perhaps you're only using relative links ?
OK. That makes sense. I am not using request->uri_* at all. I actually have fully qualified links always, and I set them up in my config files like so
and then, in my templates, [% appuri %]/foo etc.
No wonder I never experienced this as an issue. On the other hand, I've had countless other issues with deployment, and the only one that has worked for me is Starman behind Apache proxy. As a result, I now I have 12 Dancer apps on my iMac with 10 Starman workers on each, so my process list is polluted with 120 of Perl processes.
At some point I have to revisit running all this via mod_perl or mod_psgi or whatever. I never could get fast_cgi to work with Apache.
More information about the Dancer-users