@@ -, +, @@ apps --- Koha/App/Intranet.pm | 4 ++++ Koha/App/Opac.pm | 4 ++++ etc/koha-mojolicious.conf | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 etc/koha-mojolicious.conf --- a/Koha/App/Intranet.pm +++ a/Koha/App/Intranet.pm @@ -27,6 +27,10 @@ use Koha::Cache::Memory::Lite; sub startup { my ($self) = @_; + # Setting a default config to avoid errors if the config file is missing + # Set MOJO_CONFIG environment variable to define the config file path + $self->plugin('Config', { default => {} }); + push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); --- a/Koha/App/Opac.pm +++ a/Koha/App/Opac.pm @@ -27,6 +27,10 @@ use Koha::Cache::Memory::Lite; sub startup { my ($self) = @_; + # Setting a default config to avoid errors if the config file is missing + # Set MOJO_CONFIG environment variable to define the config file path + $self->plugin('Config', { default => {} }); + push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); --- a/etc/koha-mojolicious.conf +++ a/etc/koha-mojolicious.conf @@ -0,0 +1,9 @@ +# Example of config file for mojolicious applications +# https://docs.mojolicious.org/Mojolicious/Plugin/Config +{ + # Hypnotoad settings + # https://metacpan.org/pod/Mojo::Server::Hypnotoad#SETTINGS + hypnotoad => { + listen => ['http://*:8000'], + }, +} --