Start of a github2fedmsg role.
This commit is contained in:
parent
20b6ff52b1
commit
0458fc105b
7 changed files with 616 additions and 1 deletions
roles/github2fedmsg/files
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')
|
Loading…
Add table
Add a link
Reference in a new issue