Skip to content

Commit

Permalink
CV2-5726 don't use reload flag when running the server in the cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Nov 26, 2024
1 parent 505ea40 commit 1d28779
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.PHONY: run run_http run_worker run_test
.PHONY: run run_http run_worker run_processor run_test

run:
./start_all.sh

run_http:
ifeq ($(filter $(DEPLOY_ENV),qa live),)
uvicorn main:app --host 0.0.0.0 --reload
else
uvicorn main:app --host 0.0.0.0
endif

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

run_test:
python -m pytest test
python -m pytest test

0 comments on commit 1d28779

Please sign in to comment.