Update Uvicorn command in Dockerfiles and shell script to use langflow.main:create_app instead of src.backend.langflow.main:create_app (#1751)

* Update Uvicorn command in Dockerfiles and shell script to use langflow.main:create_app instead of src.backend.langflow.main:create_app

* Update Uvicorn command in Dockerfiles and shell script to use asyncio event loop
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-04-19 18:22:27 -03:00 • committed by GitHub
commit 09fd88a0d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ services:
[
"sh",
"-c",
"pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn --factory src.backend.langflow.main:create_app --host 0.0.0.0 --port 7860 --reload",
"pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn --factory langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --loop asyncio",
]
ports:
- 7860:7860