26 Apr
2010
26 Apr
'10
3:13 p.m.
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