# HG changeset patch # User Marcin Kuzminski # Date 2011-06-17 14:48:57 # Node ID 5a31d387f347dc3dff451f8277f5b9a9ba944425 # Parent 7e221629a3e50e0b1ce7441ba63c2b4808e61f79 Added example wsgi config into docs diff --git a/docs/setup.rst b/docs/setup.rst old mode 100644 new mode 100755 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -485,10 +485,25 @@ Add the following at the end of the .ini 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 -------------------------