Skip to content

Commit

Permalink
fix uvicorn cmd (langchain-ai#283)
Browse files Browse the repository at this point in the history
* fix uvicorn cmd

* test

* fmt
  • Loading branch information
baskaryan authored Mar 12, 2024
1 parent 07a3121 commit 98694c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ COPY ./backend/*.py ./backend/

RUN poetry install --no-interaction --no-ansi

CMD exec uvicorn backend.main:app --host 0.0.0.0 --port 8080
CMD exec uvicorn --app-dir=backend main:app --host 0.0.0.0 --port 8080
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: start
start:
poetry run uvicorn backend.main:app --reload --port 8080
poetry run uvicorn --app-dir=backend main:app --reload --port 8080

.PHONY: format
format:
Expand Down

0 comments on commit 98694c0

Please sign in to comment.