Add WSGI hook for running gateway through uWSGI.

This commit is contained in:
James Muscat 2015-07-01 21:44:19 +01:00
parent 2ffd62a933
commit 8cdd2b4c84

View File

@ -21,7 +21,7 @@ from eddn.core.Validator import Validator, ValidationSeverity
from gevent import monkey
monkey.patch_all()
from bottle import run, request, response, get, post
from bottle import default_app, run, request, response, get, post
logger = logging.getLogger(__name__)
@ -219,3 +219,5 @@ def main():
if __name__ == '__main__':
main()
else:
application = app = default_app()