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
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
It seems that setting DANCER_CONFDIR env var works, but using app.pl --confdir doesn't.
On Sun, 08 Jan 2012 22:24:33 +0100 Tomasz Konojacki <xenu@poczta.onet.pl> wrote:
It seems that setting DANCER_CONFDIR env var works, but using app.pl --confdir doesn't.
Raised on GitHub as issue 724: https://github.com/sukria/Dancer/issues/724 Thanks! -- David Precious ("bigpresh") <davidp@preshweb.co.uk> http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook www.preshweb.co.uk/cpan www.preshweb.co.uk/github
participants (2)
-
David Precious -
Tomasz Konojacki