#!/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)
def app() -> Flask: app = create_app() return app
def run_app(): from app.web import create_app create_app().run(host='0.0.0.0')