[Dancer-users] deploying via Apache

P Kishor punk.kish at gmail.com
Mon Aug 2 23:08:39 CEST 2010

On Mon, Aug 2, 2010 at 3:59 PM, Olaf Alders <olaf at wundersolutions.com> wrote:
>>>>> Hi
>>>> There is a bug in the last Dancer version on CPAN: in the app.psgi file, you
>>>> need to add a "use lib 'lib'" before the load_app instruction.
>>>> Let us know if this works for you.
>>> Nope, it doesn't. First, I have to "use lib '/full/path/to/lib'" By
>>> using the full path, at least, lib is recognized, and Dancer is
>>> actually invoked.
> Rather than hard coding the full path to lib, why not try:
> use Find::Lib  '../lib';
> I've got that in my public/dispatch.cgi as I was running into a similar issue.  I realize this isn't really the issue you're up against, but with Find::Lib you can generally avoid hard coding the full path to your libs.

Thanks Olaf. As you rightly said, finding the lib is not my problem at
this time. What is problematic is that Dancer's deployment apps seem
to have been written without tests. As a result, there is stuff on the
docs web site that causes errors even when followed to the letter.

And, when I enable the app to find the lib, I still get errors.

What I don't understand is, why is no one else encountering these
errors that I am? My set up is fairly run of the mill, very routine.
Nothing exotic at all. Yet, I am encountering errors at every step,
and none of them seem to be reflected in the docs.

Puneet Kishor

More information about the Dancer-users mailing list