Skip to content
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

0.48.0 #221

Merged
merged 5 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
we should have a more sensibe prefix
oetiker authored Dec 1, 2023
commit 591428bfcc88388d7c9aa6b9737b30572160359e
6 changes: 3 additions & 3 deletions lib/CallBackery/Model/ConfigJsonSchema.pm
Original file line number Diff line number Diff line change
@@ -70,8 +70,8 @@ Example config file:

Example environment override:

export CM_CB_OVERRIDE_BACKEND_CFG_DB='dbi:SQLite:dbname=/tmp/cb.db'
export CM_CB_OVERRIDE_LIST_0='goodbye'
export CB_CFG_OVERRIDE_BACKEND_CFG_DB='dbi:SQLite:dbname=/tmp/cb.db'
export CB_CFG_OVERRIDE_LIST_0='goodbye'

=cut

@@ -81,7 +81,7 @@ has cfgHash => sub ($self) {
Mojo::Exception->throw("Loading ".$self->file.": $@");
}
my $cfg = $walker->($cfgRaw, sub ($path,$data) {
my $env = 'CM_CB_OVERRIDE'.$path;
my $env = 'CB_CFG_OVERRIDE'.$path;
$env =~ s/\//_/g;
if (exists $ENV{$env} and my $override = $ENV{$env}) {
$self->log->debug("overriding cfg $path ($data) with ENV \$$env ($override)");