Пример #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())
Пример #3
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)
Пример #4
0
def app() -> Flask:
    app = create_app()
    return app
Пример #5
0
def run_app():
    from app.web import create_app
    
    create_app().run(host='0.0.0.0')