We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

diff dev-vcs/kallithea/files/production.wsgi @ 130:2ce94546a682

Kallithea: adding WSGI, adding .keep file to data directory
author Daniel Neugebauer <dneuge@energiequant.de>
date Sun, 10 Aug 2014 22:33:43 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-vcs/kallithea/files/production.wsgi	Sun Aug 10 22:33:43 2014 +0200
@@ -0,0 +1,15 @@
+import os
+os.environ["HGENCODING"] = "UTF-8"
+os.environ['PYTHON_EGG_CACHE'] = '###DATADIR###/.egg-cache'
+
+# sometimes it's needed to set the curent dir
+os.chdir('###DATADIR###/')
+
+import site
+site.addsitedir("###BASEDIR###/lib/python2.7/site-packages")
+
+from paste.deploy import loadapp
+from paste.script.util.logging_config import fileConfig
+
+fileConfig('###CONFDIR###/production.ini')
+application = loadapp('config:###CONFDIR###/production.ini')