# HG changeset patch # User Marcin Kuzminski # Date 1308322137 -7200 # Node ID 5a31d387f347dc3dff451f8277f5b9a9ba944425 # Parent 7e221629a3e50e0b1ce7441ba63c2b4808e61f79 Added example wsgi config into docs diff -r 7e221629a3e5 -r 5a31d387f347 docs/setup.rst --- 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 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 -------------------------