wsgi: Get rid of the wsgi files.

Though useful they need to be customised per environment anyway and the
necessary examples are now included in the docs.
This commit is contained in:
Daniele Sluijters
2014-01-16 11:39:15 +01:00
parent c6b194ca83
commit 00935f87fe
2 changed files with 0 additions and 30 deletions

View File

@@ -1,19 +0,0 @@
from __future__ import absolute_import
import os
import sys
import logging
me = os.path.dirname(os.path.abspath(__file__))
# Add us to the PYTHONPATH/sys.path if we're not on it
if not me in sys.path:
sys.path.insert(0, me)
logfilename = os.path.join('/tmp/', 'puppetboard_passenger_wsgi.log')
# configure the logging
logging.basicConfig(filename=logfilename, level=logging.INFO)
try:
from puppetboard.app import app as application
except Exception, inst:
logging.exception("Error: %s", str(type(inst)))

11
wsgi.py
View File

@@ -1,11 +0,0 @@
from __future__ import absolute_import
import os
import sys
me = os.path.dirname(os.path.abspath(__file__))
# Add us to the PYTHONPATH/sys.path if we're not on it
if not me in sys.path:
sys.path.insert(0, me)
from puppetboard.app import app as application