Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 2cc886f52a80a3611d67e8ca46836a109fd79150 Author: Miroslav Suchý msuchy@redhat.com Date: Tue Jun 18 09:43:59 2013 +0200
web application should be put in /usr/share/%{name}
see http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications
coprs_frontend/coprs.conf.example | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs.conf.example b/coprs_frontend/coprs.conf.example index 98bf98b..3dddd10 100644 --- a/coprs_frontend/coprs.conf.example +++ b/coprs_frontend/coprs.conf.example @@ -1,8 +1,9 @@ <VirtualHost 127.0.0.1:8000> ServerName 127.0.0.1
+ #WSGIPassAuthorization On WSGIDaemonProcess 127.0.0.1 user=coprs group=coprs threads=5 - WSGIScriptAlias / /var/www/coprs_frontend/application + WSGIScriptAlias / /usr/share/coprs_frontend/application WSGIProcessGroup 127.0.0.1
ErrorLog logs/error_coprs
On Tue, 2013-06-18 at 09:17 +0000, msuchy@fedoraproject.org wrote:
web application should be put in /usr/share/%{name} see
http://fedoraproject.org/wiki/Packaging:Guidelines#Web_Applications
Just a note: as a python application it can also just be put in /usr/lib/python*/site-packages/... just like any python library.
That's what I've done for fedocal at least.
Pierre
On 06/18/2013 11:24 AM, Pierre-Yves Chibon wrote:
Just a note: as a python application it can also just be put in/usr/lib/python*/site-packages/... just like any python library.
Yes. But I tend to put into %{python_sitelib} just pure python. But we have images, html templates, javascript there... so in this case I chosen that it is rather web applications. But it is fifty-fifty (and all are better then /srv/). I just chosen one.
Mirek
copr-devel@lists.fedorahosted.org