Skip to content

Commit

Permalink
try fastapi dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tommylees112 committed Sep 13, 2024
1 parent aed2262 commit 7ac3e2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ COPY . ./
RUN pip install --no-cache-dir -r requirements.txt

# As an example here we're running the web service with one worker on uvicorn.
CMD exec uvicorn src.main:app --host 0.0.0.0 --workers 1
# CMD exec uvicorn src.main:app --host 0.0.0.0 --workers 1
CMD fastapi dev --port=$PORT --host=0.0.0.0 src/main.py
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ python-dotenv
python-multipart
twilio
uvicorn
nltk
nltk
fastapi[standard]

0 comments on commit 7ac3e2b

Please sign in to comment.