Blame runserver.py

Pierre-Yves Chibon 346fa0
#!/usr/bin/env python2
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 2088eb
## These two lines are needed to run on EL6
Pierre-Yves Chibon ee9b42
__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4']
Pierre-Yves Chibon 2088eb
import pkg_resources
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 281f75
import sys
Pierre-Yves Chibon 281f75
from werkzeug.contrib.profiler import ProfilerMiddleware
Pierre-Yves Chibon 281f75
Pierre-Yves Chibon 2088eb
from progit import APP
Pierre-Yves Chibon 2088eb
APP.debug = True
Pierre-Yves Chibon 281f75
Pierre-Yves Chibon 281f75
if '--profile' in sys.argv:
Pierre-Yves Chibon 281f75
    APP.config['PROFILE'] = True
Pierre-Yves Chibon 281f75
    APP.wsgi_app = ProfilerMiddleware(APP.wsgi_app, restrictions=[30])
Pierre-Yves Chibon 281f75
Pierre-Yves Chibon 2088eb
APP.run()