[Dancer-users] Dancer.pm sets confdir too early

Alexis Sukrieh sukria at sukria.net
Mon Apr 26 17:13:01 CEST 2010


Le lundi 26 avril 2010 à 17:08 +0200, Stéphane a écrit :
> >>     use Dancer ':syntax';
> >>     set confdir =>  MyApp::confdir; # e.g. /etc/myapp/config.yml
> >>     use Dancer;
> [...]
> > No, you can't do that. It has never been possible to set the confdir via
> > the "set" keyword as Dancer needs to parse configuration files at import
> > time.
> 
> Agreed. I had seen the DANCER_CONFDIR environment variable, but could 
> not get it to work from within a Perl script or module (using 
> $ENV{DANCER_CONFDIR} = ..) without calling Dancer->import() manually, so 
> that defeated the purpose.

Then there is a bug we have to fix.

Thanks for the report, if you have the time, could you report this
issue? 

Thanks.

-- 
Alexis Sukrieh



More information about the Dancer-users mailing list