From 1d2877977110aab12e10531e4a5e2512a3158ab5 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Tue, 26 Nov 2024 09:47:26 -0800 Subject: [PATCH 1/3] CV2-5726 don't use reload flag when running the server in the cloud --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 69c6d8d1..85cade5e 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -13,4 +17,4 @@ run_processor: python run_processor.py run_test: - python -m pytest test \ No newline at end of file + python -m pytest test From 562b358894e36c1af297b373fcc3b207f6d7cf2e Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Wed, 27 Nov 2024 12:51:29 -0800 Subject: [PATCH 2/3] Update Makefile --- Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Makefile b/Makefile index 85cade5e..4df26ff4 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,7 @@ 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 From fd5f65112a75a322dbc90a1e05f2b7f43b49b52d Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Wed, 27 Nov 2024 12:51:59 -0800 Subject: [PATCH 3/3] Update start_all.sh --- start_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_all.sh b/start_all.sh index b1089835..9d9e5736 100755 --- a/start_all.sh +++ b/start_all.sh @@ -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