-
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
confdir config option not actually used anywhere #919
Comments
This relates to #408. We should definitely support |
Can i take this bug? |
@vorobeez go for it! 😄 |
What we are looking for is support for the configuration option
The first isn't supported since the command line is now The second is probably too late to set it, since as soon as you call |
@xsawyerx, thank you for explanations. |
@vorobeez Not a problem at all. :) |
@vorobeez how's it going with this? Anything we can help with? Please let me know! :) |
Can we put something in bin/app.psgi to set the confdir option? |
You can set DANCER_CONFDIR. Looking through Dancer2::Core::Role::ConfigReader, this seems supported already. I like the idea of |
@cromedome, hello. Sorry, i didn't have so much time to investigate this bug. Now i am reviewing Dancer2::Core:App.pm. Give me, please, one week to offer some solution. |
No problem! Not trying to rush you, I just wanted to make myself available if you needed anything :)
|
@cromedome, hello again. I have some questions. Maby you will answer to me?
What will happen after calling |
The 'dance' keyword does not seem to be necessary, in fact my tests fail when it is in my code. This is off-topic; I recommend the dancer-users mailing list. Did my comment on Oct 8 cover the confdir issue? If so, let's close this issue and focus on #408 . Thanks -- Rick |
Andrew/Rick, Andrew: sorry for the delay in responding to this. I have actually started a somewhat ambitious project to deal with the list of config related issues… covering confdir, issue 408, and more. I should have a branch pushed on my fork sometime this weekend, I hope, and you can both see what I am working towards. Your feedback/input/patches will certainly be welcome. Rick: I am not as convinced that ConfigReader is more complex than it needs to be. Let me get my branch cleaned up and pushed and let’s discuss some more? Thanks!
|
Hello, are there any updates regarding this? |
I was expecting to be able to get Dancer2 to load a config from a specific directory by using the 'confdir' option. It is documented in Dancer2::Config:
It's not used anywhere in code, though.
ConfigReader.pm seems to deduce the configuration directory using some horrible code in HasLocation.pm which just trawls the file-system looking for a .dancer file (!) or a diretory with a lib and bin subdirectory (!!).
ConfigReader.pm:
I'd rather not have my apps just use the first config they come across on the filesystem - can this be changed to use a specified directory?
The text was updated successfully, but these errors were encountered: