Bug 7844 - plack intranet tooling for developers
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 29 Mar 2012 10:27:05 +0000 (12:27 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 30 May 2012 20:27:04 +0000 (22:27 +0200)
commit714bc8a3502b768d6403686dbfd3345edc4822e6
tree34bff897624e17408baf8240a46ac26f6f602fe8
parent88b6e0f90a32af03ed6c4876e0917176bafe8376
Bug 7844 - plack intranet tooling for developers

koha.psgi example and script to run any Koha site intranet or opac under plack

It also defines new enviroment variables:

PLACK_DEBUG=1  - turn Plack debug panels on
PLACK_MINIFY=1 - minify JavaScript and CSS which saves us ~10k on each page load

Test scenario:
1. install plack and dependencies, using ./cpanm-install.pl

2. start ./intranet-plack.sh sitename

3. open intranet page http://localhost:5001/cgi-bin/koha/mainpage.pl
   and verify that it works

4. start ./opac-plack.sh sitename

5. open OPAC http://localhost:5000/cgi-bin/koha/opac-main.pl
   and very that it works
misc/plack/cpanm-install.sh [new file with mode: 0755]
misc/plack/intranet-plack.sh [new file with mode: 0755]
misc/plack/koha.psgi [new file with mode: 0644]
misc/plack/opac-plack.sh [new file with mode: 0755]