diff options
| author | Ralph Bean <rbean@redhat.com> | 2014-06-16 20:20:21 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2014-06-16 20:20:21 +0000 |
| commit | 0458fc105b587331af7b9288f11c9562b3bb2852 (patch) | |
| tree | d03653f2cc11373be533b360abd2b8bd210f8687 /roles/github2fedmsg/files/github2fedmsg.wsgi | |
| parent | 20b6ff52b15aaabc303c26e7ac1c64621dc2fe36 (diff) | |
Start of a github2fedmsg role.
Diffstat (limited to 'roles/github2fedmsg/files/github2fedmsg.wsgi')
| -rw-r--r-- | roles/github2fedmsg/files/github2fedmsg.wsgi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/github2fedmsg/files/github2fedmsg.wsgi b/roles/github2fedmsg/files/github2fedmsg.wsgi new file mode 100644 index 000000000..b339df050 --- /dev/null +++ b/roles/github2fedmsg/files/github2fedmsg.wsgi @@ -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') |
