Fix venv path

This commit is contained in:
Abhishek Kumar 2025-09-27 14:44:13 +05:30
parent baa18f3531
commit ba007bbcc1
2 changed files with 4 additions and 4 deletions

View file

@ -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 ##################################################################

View file

@ -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."