Skip to content

Commit

Permalink
Merge pull request #133 from meedan/cv2-5726-no-reloads-on-cloud
Browse files Browse the repository at this point in the history
CV2-5726 don't use reload flag when running the server in the cloud
  • Loading branch information
DGaffney authored Dec 2, 2024
2 parents 505ea40 + fd5f651 commit 57ef2b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: run run_http run_worker run_test
.PHONY: run run_http run_worker run_processor run_test

run:
./start_all.sh

run_http:
uvicorn main:app --host 0.0.0.0 --reload
uvicorn main:app --host 0.0.0.0

run_worker:
python run_worker.py
Expand All @@ -13,4 +13,4 @@ run_processor:
python run_processor.py

run_test:
python -m pytest test
python -m pytest test
2 changes: 1 addition & 1 deletion start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if [ "$ROLE" != "worker" ]; then

# Start the HTTP server process in the background if not a worker
uvicorn main:app --host 0.0.0.0 --port ${PRESTO_PORT} --reload
uvicorn main:app --host 0.0.0.0 --port ${PRESTO_PORT}

else
# Start worker processes in background
Expand Down

0 comments on commit 57ef2b6

Please sign in to comment.