Ejemplo n.º 1
0
def app(app_config, clean_dir):
    return create_app(app_config, WriteToFileEmailFake())
Ejemplo n.º 2
0
from alservice.service.wsgi import create_app

app = create_app()

if __name__ == "__main__":
    import ssl

    context = None
    if app.config['SSL']:
        context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
        context.load_cert_chain(app.config["SERVER_CERT"], app.config["SERVER_KEY"])

    app.run(host=app.config['HOST'], port=app.config['PORT'], debug=app.config['DEBUG'],
            ssl_context=context)