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

@ -13,7 +13,7 @@ services:
- "7860:7860"
volumes:
- ./:/app
command: bash -c "uvicorn --factory src.backend.langflow.main:create_app --host 0.0.0.0 --port 7860 --reload"
command: bash -c "uvicorn --factory langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --loop asyncio",
networks:
- langflow
frontend:
@ -23,7 +23,7 @@ services:
args:
- BACKEND_URL=http://backend:7860
depends_on:
- backend
- backend
environment:
- VITE_PROXY_TARGET=http://backend:7860
ports: