From d90e22397b06a7b635bc166f22f0d8fbe433a893 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Thu, 16 Jan 2014 11:39:15 +0100 Subject: [PATCH] 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. --- passenger_wsgi.py | 19 ------------------- wsgi.py | 11 ----------- 2 files changed, 30 deletions(-) delete mode 100644 passenger_wsgi.py delete mode 100644 wsgi.py diff --git a/passenger_wsgi.py b/passenger_wsgi.py deleted file mode 100644 index 6f22959..0000000 --- a/passenger_wsgi.py +++ /dev/null @@ -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))) diff --git a/wsgi.py b/wsgi.py deleted file mode 100644 index adfa0a8..0000000 --- a/wsgi.py +++ /dev/null @@ -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