Beispiel #1
0
def app(request):
    app = create_app(config_obj=TestConfig)
    return app
Beispiel #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from werkzeug.contrib.fixers import ProxyFix

from demux.factory import create_app

app = create_app(config=os.environ.get("FLASK_CONFIG"))
app.wsgi_app = ProxyFix(app.wsgi_app)


if __name__ == "__main__":
    app.run()