From 6a4c8ca22b85e2038c5559b07de7f5982a95b289 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 15 Feb 2013 20:41:49 +0100 Subject: [PATCH] add wsgi script --- flaskcvp.wsgi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flaskcvp.wsgi diff --git a/flaskcvp.wsgi b/flaskcvp.wsgi new file mode 100644 index 0000000..4941b7d --- /dev/null +++ b/flaskcvp.wsgi @@ -0,0 +1,25 @@ + +# Set this to the same path you used in settings.py, or None for auto-detection. +MUMBLE_DJANGO_ROOT = None; + +### DO NOT CHANGE ANYTHING BELOW THIS LINE ### + +import os, sys +from os.path import join, dirname, abspath, exists + +# Path auto-detection +if not MUMBLE_DJANGO_ROOT or not exists( MUMBLE_DJANGO_ROOT ): + MUMBLE_DJANGO_ROOT = dirname(abspath(__file__)) + +# environment variables +sys.path.append( MUMBLE_DJANGO_ROOT ) +sys.path.append( join( MUMBLE_DJANGO_ROOT, 'pyweb' ) ) + + +# If you get an error about Python not being able to write to the Python +# egg cache, the egg cache path might be set awkwardly. This should not +# happen under normal circumstances, but every now and then, it does. +# Uncomment this line to point the egg cache to /tmp. +#os.environ['PYTHON_EGG_CACHE'] = '/tmp/pyeggs' + +from flaskcvp import app as application