mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
Start of a github2fedmsg role.
This commit is contained in:
16
roles/github2fedmsg/files/github2fedmsg.wsgi
Normal file
16
roles/github2fedmsg/files/github2fedmsg.wsgi
Normal file
@@ -0,0 +1,16 @@
|
||||
import sys
|
||||
sys.stdout = sys.stderr
|
||||
|
||||
import __main__
|
||||
__main__.__requires__ = __requires__ = ["github2fedmsg", "sqlalchemy>=0.8"];
|
||||
import pkg_resources
|
||||
pkg_resources.require(__requires__)
|
||||
|
||||
import os
|
||||
os.environ['PYTHON_EGG_CACHE'] = '/var/www/.python-eggs'
|
||||
|
||||
from pyramid.paster import get_app, setup_logging
|
||||
ini_path = '/etc/github2fedmsg/github2fedmsg.ini'
|
||||
setup_logging(ini_path)
|
||||
|
||||
application = get_app(ini_path, 'main')
|
||||
Reference in New Issue
Block a user