-
Notifications
You must be signed in to change notification settings - Fork 3
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
Inconsistent with Catalyst - CATALYST_CONFIG
#6
Comments
|
Config::JFDI also ignored CATALYST_CONFIG Any method of getting it to look at |
Why? |
Because the app isn't called Catalyst and there's not much point in having a config loader that works like Catalyst if I have to jump through hoops to make it work like Catalyst. If the Catalyst app will look for |
It's faster and the whole point is that it's not catalyst. I personally believe that the catalyst config mechanism is fundamentally flawed and that storing the config of your templating engine (which is likely to never change) next to your database connect string (which is very likely to change) is ridiculous. If you want this to act like catalyst you'll need to tell it to; sorry :) |
But I can't seem to tell it to, that's my point. None of the available constructor options had it look at both |
Yeah I hear you. Want comaint? 😉
…--
Sent from a rotary phone rented from Ma Bell
On Thu, Aug 9, 2018, 7:59 AM Alastair Douglas ***@***.***> wrote:
But I can't seem to tell it to, that's my point. None of the available
constructor options had it look at both CATALYST_CONFIG as well as
${NAME}_CONFIG.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAf43Eh__zhcVEhy12D1FXvRVPvhm1jks5uPE5KgaJpZM4V1x8T>
.
|
I don't think I'm in a position to make that decision ;) I can put a PR together though :) |
Catalyst will use
CATALYST_CONFIG
as well as${NAME}_CONFIG
; and if it is set, it will also look for the_local
file next to it.Setting
CATALYST_CONFIG
has no effect onConfig::ZOMG
, and settingenv_lookup
didn't seem to achieve the desired effect.What did work was to set
name => "Catalyst"
, but then of course,${NAME}_CONFIG
no longer works with the original value ofname
.I have been using
CATALYST_CONFIG
exclusively in all of our Docker environments so I don't have to know which specific variable I have to override in each container; but any process using Config::ZOMG to avoid loading the entire Catalyst application therefore cannot find the config without hijinks.The text was updated successfully, but these errors were encountered: