mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
Fix venv path
This commit is contained in:
parent
baa18f3531
commit
ba007bbcc1
2 changed files with 4 additions and 4 deletions
|
|
@ -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 ##################################################################
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue