View | Details | Raw Unified | Return to bug 36721
Collapse All | Expand All

(-)a/Koha/Preload.pm (+22 lines)
Line 0 Link Here
1
package Koha::Preload;
2
3
use Modern::Perl;
4
use Mojo::Base 'Mojolicious';
5
use Mojolicious::Plugin::OAuth2;
6
use Mojolicious::Plugin::OpenAPI;
7
use Mojolicious::Plugin::OpenAPI::Cors;
8
use Mojolicious::Plugin::OpenAPI::Security;
9
use Mojolicious::Plugin::OpenAPI::SpecRenderer;
10
use Mojolicious::Plugin::RenderFile;
11
use Net::Netmask;
12
use Plack::Middleware::ErrorDocument;
13
use Plack::Middleware::HTTPExceptions;
14
use Plack::Middleware::Log4perl;
15
use Plack::Middleware::LogWarn;
16
use Plack::Middleware::ReverseProxy;
17
use Plack::Middleware::Static;
18
use Plack::Response;
19
20
use Koha::Schema;
21
22
1;
(-)a/debian/scripts/koha-plack (-2 / +1 lines)
Lines 109-115 start_plack() Link Here
109
        STARMAN="/usr/bin/perl -d ${STARMAN}"
109
        STARMAN="/usr/bin/perl -d ${STARMAN}"
110
    fi
110
    fi
111
111
112
    STARMANOPTS="-M FindBin ${max_requests_and_workers} \
112
    STARMANOPTS="-M Koha::Preload -M FindBin ${max_requests_and_workers} \
113
                 --user=${instance_user} --group ${instancename}-koha \
113
                 --user=${instance_user} --group ${instancename}-koha \
114
                 --pid ${PIDFILE} ${daemonize} ${logging} \
114
                 --pid ${PIDFILE} ${daemonize} ${logging} \
115
                 -E ${environment} --socket ${PLACKSOCKET} ${PSGIFILE}"
115
                 -E ${environment} --socket ${PLACKSOCKET} ${PSGIFILE}"
116
- 

Return to bug 36721