comparison docs/setup.rst @ 5594:87aef0cb5a6a

Merge stable
author Mads Kiilerich <madski@unity3d.com>
date Fri, 27 Nov 2015 01:39:21 +0100
parents ed2fb6e84a02 57bae44fd22e
children ada6571a6d27
comparison
equal deleted inserted replaced
5586:007d1a34a35a 5594:87aef0cb5a6a
728 728
729 .. code-block:: apache 729 .. code-block:: apache
730 730
731 WSGIDaemonProcess kallithea \ 731 WSGIDaemonProcess kallithea \
732 processes=1 threads=4 \ 732 processes=1 threads=4 \
733 python-path=/srv/kallithea/pyenv/lib/python2.7/site-packages 733 python-path=/srv/kallithea/venv/lib/python2.7/site-packages
734 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi 734 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
735 WSGIPassAuthorization On 735 WSGIPassAuthorization On
736 736
737 Or if using a dispatcher WSGI script with proper virtualenv activation: 737 Or if using a dispatcher WSGI script with proper virtualenv activation:
738 738
756 756
757 # sometimes it's needed to set the curent dir 757 # sometimes it's needed to set the curent dir
758 os.chdir('/srv/kallithea/') 758 os.chdir('/srv/kallithea/')
759 759
760 import site 760 import site
761 site.addsitedir("/srv/kallithea/pyenv/lib/python2.7/site-packages") 761 site.addsitedir("/srv/kallithea/venv/lib/python2.7/site-packages")
762 762
763 from paste.deploy import loadapp 763 from paste.deploy import loadapp
764 from paste.script.util.logging_config import fileConfig 764 from paste.script.util.logging_config import fileConfig
765 765
766 fileConfig('/srv/kallithea/my.ini') 766 fileConfig('/srv/kallithea/my.ini')