diff --git a/scripts/rolling_update_uvicorn.sh b/scripts/rolling_update_uvicorn.sh index 7cba8c1..c815f63 100755 --- a/scripts/rolling_update_uvicorn.sh +++ b/scripts/rolling_update_uvicorn.sh @@ -7,14 +7,14 @@ set -e # Exit on error ENV_FILE="api/.env" RUN_DIR="run" LOG_DIR="logs" -VENV_PATH="/home/ubuntu/dograh_venv" +VENV_PATH="/home/ubuntu/dograh/venv" HEALTH_CHECK_ENDPOINT="/api/v1/health" # Adjust as needed MAX_WAIT_SECONDS=310 # Max wait for graceful shutdown (5 minutes + 10 seconds grace) # Load environment set -a && . "$ENV_FILE" && set +a -cd /home/ubuntu/app +cd /home/ubuntu/dograh/app ### FUNCTIONS ################################################################## diff --git a/scripts/start_services.sh b/scripts/start_services.sh index 3f054f8..9d3305f 100755 --- a/scripts/start_services.sh +++ b/scripts/start_services.sh @@ -7,7 +7,7 @@ set -e # Exit on error ENV_FILE="api/.env" RUN_DIR="run" # where we keep *.pid LOG_DIR="logs" -VENV_PATH="/home/ubuntu/dograh_venv" +VENV_PATH="/home/ubuntu/dograh/venv" ARQ_WORKERS=${ARQ_WORKERS:-1} # Log startup @@ -16,7 +16,7 @@ echo "Starting Dograh Services at $(date)" ### 1) Load environment vars so that configurations like FASTAPI_WORKERS are loaded set -a && . "$ENV_FILE" && set +a -cd /home/ubuntu/app +cd /home/ubuntu/dograh/app if [[ -z "${FASTAPI_PORT:-}" ]]; then echo "Error: FASTAPI_PORT environment variable is not set."