Skip to content

Commit d09a8b1

Browse files
committed
address cursor comment
1 parent 07ff4b1 commit d09a8b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_marqo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ case "$MARQO_MODE" in
160160
COMBINED)
161161
# Start the combined Marqo API and Inference in the background
162162
cd /app/src/marqo/tensor_search || { echo "Failed to navigate to tensor_search directory"; exit 1; }
163-
uvicorn api:app --host $MARQO_HOST --port 8882 --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
163+
uvicorn api:app --host "$MARQO_HOST" --port 8882 --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
164164
;;
165165
API)
166166
# set default number of workers to 1
@@ -170,12 +170,12 @@ case "$MARQO_MODE" in
170170

171171
# Start the Marqo API in the background
172172
cd /app/src/marqo/tensor_search || { echo "Failed to navigate to tensor_search directory"; exit 1; }
173-
uvicorn api:app --host $MARQO_HOST --port 8882 --workers $MARQO_API_WORKERS --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
173+
uvicorn api:app --host "$MARQO_HOST" --port 8882 --workers $MARQO_API_WORKERS --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
174174
;;
175175
INFERENCE)
176176
# Start the native Inference server app in the background
177177
cd /app/src/marqo/inference/native_inference/remote/server || { echo "Failed to navigate to inference server directory"; exit 1; }
178-
uvicorn inference_api:app --host $MARQO_HOST --port 8881 --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
178+
uvicorn inference_api:app --host "$MARQO_HOST" --port 8881 --timeout-keep-alive 75 --log-level "$MARQO_LOG_LEVEL" &
179179
;;
180180
*)
181181
echo "Invalid MARQO_MODE: $MARQO_MODE. Supported modes are 'COMBINED', 'API' and 'INFERENCE'"

0 commit comments

Comments
 (0)