[Koha-bugs] [Bug 20582] Turn Koha into a Mojolicious application

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 6 15:34:38 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20582

--- Comment #90 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Julian Maurice from comment #89)
> (In reply to Jonathan Druart from comment #87)
> > Then I don't understand. With the default 8080 and 8081 I was expecting to
> > hit :8080 and :8081 and get the interfaces.
> > Can you explain a bit more please?
> 
> You can use these ports, but you need to tell starman to listen on them,
> with starman -l :8080 -l :8081

Ok so the correct start command would be:
% starman -l :${KOHA_OPAC_PORT} -l :${KOHA_INTRANET_PORT}

> (In reply to Jonathan Druart from comment #88)
> > > - It uses the same mechanism as Plack::App::CGIBin to deal with CGI
> > >   scripts, so it should be equivalent in terms of performance
> > 
> > It's not what I am experiencing.
> > Apache+plack, hit mainpage: between 800 and 1000ms
> > Mojo, hit mainpage: 1400-1700ms
> 
> What are you measuring exactly ? The GET request or the whole page load with
> static files ?
> Because I get a constant time of 200ms for the GET request.
> If you are measuring the whole page load, then it is expected to be slower,
> because it handles all static files requests too. Make apache/nginx handle
> the static files and it should be faster.
> 
> Even without apache/nginx, if I run the app with hypnotoad, the whole page
> (HTML + css/js) loads under 200ms

Makes sense, thanks for the quick answer!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list