Mercurial > kallithea
changeset 1386:5a31d387f347 beta
Added example wsgi config into docs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 17 Jun 2011 16:48:57 +0200 |
parents | 7e221629a3e5 |
children | d9fa335650d3 |
files | docs/setup.rst |
diffstat | 1 files changed, 18 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/setup.rst Thu Jun 16 23:00:19 2011 +0200 +++ b/docs/setup.rst Fri Jun 17 16:48:57 2011 +0200 @@ -485,10 +485,25 @@ then change <someprefix> into your choosen prefix -Apache's example FCGI config ----------------------------- +Apache's WSGI config +-------------------- + + +Example wsgi dispatch script:: -TODO ! + import os + os.environ["HGENCODING"] = "UTF-8" + os.environ['PYTHON_EGG_CACHE'] = '/home/web/rhodecode/.egg-cache' + + # sometimes it's needed to set the curent dir + os.chdir('/home/web/rhodecode/') + + from paste.deploy import loadapp + from paste.script.util.logging_config import fileConfig + + fileConfig('/home/web/rhodecode/production.ini') + application = loadapp('config:/home/web/rhodecode/production.ini') + Other configuration files -------------------------