Example #1
0
#!/usr/bin/env python
from app.settings import (
    PORT
)
from app.web import create_app

if __name__ == '__main__':
    # manager.run(threaded=True)
    app = create_app()
    app.run(host="0.0.0.0", port=PORT, threaded=True)
def client():
    return testing.TestClient(create_app())
#!/usr/bin/env python
from app.settings import (PORT)
from app.web import create_app

if __name__ == '__main__':
    # manager.run(threaded=True)
    app = create_app()
    app.run(host="0.0.0.0", port=PORT, threaded=True)
Example #4
0
def app() -> Flask:
    app = create_app()
    return app
Example #5
0
def run_app():
    from app.web import create_app
    
    create_app().run(host='0.0.0.0')