[Dancer-users] --confdir problem
Tomasz Konojacki
xenu at poczta.onet.pl
Sun Jan 8 19:02:32 CET 2012
Hi!
I created Dancer application using "dancer -a test" command.
Here are config.yml contents:
appname: "test"
layout: "main"
charset: "UTF-8"
template: "simple"
is_it_old_config_file: "yep"
Additionaly, I have created another config.yml in subdirectory named
cfg. It has following contents:
appname: "test"
layout: "main"
charset: "UTF-8"
template: "simple"
is_it_old_config_file: "nope"
lib/test.pm:
package test;
use Dancer ':syntax';
get '/' => sub {
return config->{is_it_old_config_file}
};
true;
When I run application with "app.pl --confdir=cfg" command, I get "yep"
instead of "nope". I tried to specify absolute path, it didn't change
anything. I'm using Windows if it matters.
Thanks in advance,
Tomasz
More information about the Dancer-users
mailing list