Skip to content

Commit

Permalink
Update backend/start_api.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Faisal Alquaddoomi <[email protected]>
  • Loading branch information
glass-ships and falquaddoomi authored Sep 29, 2023
1 parent 96ca4c7 commit 2b5b5bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/start_api.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/bash

# check for uvicorn workers env var, default to 1
if [ -z "${UVICORN_WORKERS}" ]; then
UVICORN_WORKERS=1
fi
UVICORN_WORKERS=${UVICORN_WORKERS:-1}

# Start the API
/opt/poetry/bin/poetry run uvicorn src.monarch_py.api.main:app --host 0.0.0.0 --port 8000 --workers ${UVICORN_WORKERS}

0 comments on commit 2b5b5bf

Please sign in to comment.