-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The placement of the config.yml file is not really well documented #1583
Comments
Actually, it does not depend on where you put |
And if you place a (undocumented feature) |
It's actually a bit more complicated: When |
Every module you Your repo has three places there this occurs. Config file location will use Also, your psgi file uses the |
OK, changed to use v5.14;
use lib qw(lib);
use My::Hitos;
My::Hitos->to_app; And it boots up alright. Still no trace of #1584 and #1585 working. It's reading the configuration file just the once:
but not paying any attention at the port setting either in the config or in the application itself. |
The original issue still stands (kinda). Your comment is not entirely clarified in the documentation. |
Or maybe not entirely well specified. In this repo,
config.yml
is loaded fromlib/My
, which is if I'm not wrong where theDancer2
library isuse
d first. However, this will mean that in this programThe place where you read the configuration file will depend on where you put the
use
clause, ifMy::Hitos
alsouse
s Dancer2. It's probably OK if that's what you're looking for, but it should be documented.The text was updated successfully, but these errors were encountered: