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

@ -15,4 +15,4 @@ COPY ./ ./
# Install dependencies
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
CMD ["uvicorn", "--factory", "src.backend.langflow.main:create_app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "debug"]
CMD ["uvicorn", "--factory", "langflow.main:create_app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "debug", "--loop", "asyncio"]