From 2ced33df9d806292b989c53a2d2a8c82132781d0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 20 Jul 2015 11:07:30 +0200 Subject: [PATCH] Oups, forgot the file --- .../frontend/templates/docs_pagure.wsgi | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/pagure/frontend/templates/docs_pagure.wsgi diff --git a/roles/pagure/frontend/templates/docs_pagure.wsgi b/roles/pagure/frontend/templates/docs_pagure.wsgi new file mode 100644 index 0000000000..a9f8cea973 --- /dev/null +++ b/roles/pagure/frontend/templates/docs_pagure.wsgi @@ -0,0 +1,22 @@ +#-*- coding: utf-8 -*- + +# The three lines below are required to run on EL6 as EL6 has +# two possible version of python-sqlalchemy and python-jinja2 +# These lines make sure the application uses the correct version. +import __main__ +__main__.__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4'] +import pkg_resources + +import os +## Set the environment variable pointing to the configuration file +os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg' + +## The following is only needed if you did not install pagure +## as a python module (for example if you run it from a git clone). +#import sys +#sys.path.insert(0, '/path/to/pagure/') + + +## The most import line to make the wsgi working +from pagure.docs_server import APP as application +#application.debug = True