Clarification of Plack wiki insructions
Greetings, I am trying to set up plack. I found some instructions here: http://wiki.koha-community.org/wiki/Plack "This instructions assume that your Koha checkout is /srv/koha. If it's in some other location, you have to change /srv/koha to correct folder throughout all scripts below. Create following file and call it opac.psgi" Great, except I'm not sure where opac.psgi goes. Let's say I have a git install: /home/mtompset/kohaclone. Where does opac.psgi go? Let's say I have a package install: /usr/share/koha. Where does opac.psgi go? And am I correct to assume that /srv/koha is to be substituted with those either of those paths that I have given? Help and clarification would be appreciated. I'm trying to test my revisions to bug 5010 completely. GPML, Mark Tompsett
On Thu, Dec 18, 2014 at 05:03:41AM -0500, Mark Tompsett wrote:
Greetings,
I am trying to set up plack. I found some instructions here: http://wiki.koha-community.org/wiki/Plack
"This instructions assume that your Koha checkout is /srv/koha. If it's in some other location, you have to change /srv/koha to correct folder throughout all scripts below. Create following file and call it opac.psgi"
Great, except I'm not sure where opac.psgi goes. Let's say I have a git install: /home/mtompset/kohaclone. Where does opac.psgi go? Let's say I have a package install: /usr/share/koha. Where does opac.psgi go?
It doesn't really matter. You will start plackup with path to your opac.psgi, so you can put it anywhere. I prefer to keep it in misc/plack under my installation, but this is just personal preference.
And am I correct to assume that /srv/koha is to be substituted with those either of those paths that I have given?
Yes. /srv/koha is path to my checkout, so if yours is /home/mtompset/kohaclone just use that.
Help and clarification would be appreciated.
Hope this helps. We should really cleanup that page, but since we don't have official way to install plack it's all duck tape for now :-) -- Dobrica Pavlinusic 2share!2flame dpavlin@rot13.org Unix addict. Internet consultant. http://www.rot13.org/~dpavlin
I have to admit I've got lost in the plack scheme now.. Could we get some clarification on approaches.. We have 'Plack for developers' pushed (bug 7844 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7844>), 'Plack with nginx for production' in testing (bug 9316 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9316>) and I'm aware of at least two koha-plackify scripts lurking around, Plackify-koha-common <https://github.com/JerseyConnect/Plackify-koha-common>, koha-plack <http://git.catalyst.net.nz/gw?p=koha-plack.git>. I wonder if we can safely recommend/or safely discard any of these to help clarify the 'best practice' approaches and get this moving forward again. Martin Renvoize Software Engineer, PTFS Europe Ltd Content Management and Library Solutions Skype: Landline: 0203 286 8685 Mobile: 07725985636 http://www.ptfs-europe.com On 18 December 2014 at 11:12, Dobrica Pavlinusic <dpavlin@rot13.org> wrote:
On Thu, Dec 18, 2014 at 05:03:41AM -0500, Mark Tompsett wrote:
Greetings,
I am trying to set up plack. I found some instructions here: http://wiki.koha-community.org/wiki/Plack
"This instructions assume that your Koha checkout is /srv/koha. If it's in some other location, you have to change /srv/koha to correct folder throughout all scripts below. Create following file and call it opac.psgi"
Great, except I'm not sure where opac.psgi goes. Let's say I have a git install: /home/mtompset/kohaclone. Where does opac.psgi go? Let's say I have a package install: /usr/share/koha. Where does opac.psgi go?
It doesn't really matter. You will start plackup with path to your opac.psgi, so you can put it anywhere. I prefer to keep it in misc/plack under my installation, but this is just personal preference.
And am I correct to assume that /srv/koha is to be substituted with those either of those paths that I have given?
Yes. /srv/koha is path to my checkout, so if yours is /home/mtompset/kohaclone just use that.
Help and clarification would be appreciated.
Hope this helps. We should really cleanup that page, but since we don't have official way to install plack it's all duck tape for now :-)
-- Dobrica Pavlinusic 2share!2flame dpavlin@rot13.org Unix addict. Internet consultant. http://www.rot13.org/~dpavlin _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
Le 06/01/2015 14:54, Renvoize, Martin a écrit :
I have to admit I've got lost in the plack scheme now..
Could we get some clarification on approaches.. We have 'Plack for developers' pushed (bug 7844 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7844>), 'Plack with nginx for production' in testing (bug 9316 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9316>) and I'm aware of at least two koha-plackify scripts lurking around, Plackify-koha-common <https://github.com/JerseyConnect/Plackify-koha-common>, koha-plack <http://git.catalyst.net.nz/gw?p=koha-plack.git>.
I wonder if we can safely recommend/or safely discard any of these to help clarify the 'best practice' approaches and get this moving forward again.
ping ! I think this question is worth being investigated ! (and I would be happy with some clarification too...) -- Paul Poulain, Associé-gérant / co-owner BibLibre, expert du logiciel libre pour les bibliothèques BibLibre, Open Source software for libraries expert
participants (4)
-
Dobrica Pavlinusic -
Mark Tompsett -
Paul Poulain -
Renvoize, Martin