From ac1703e6c2b0fbb61b6a19331fe423eb2b86c2d0 Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Sat, 11 Apr 2026 15:04:05 +0300 Subject: [PATCH] fix: set DATA_DIR and LOGS_DIR environment variables in start_server.sh - DATA_DIR=./data points backend to correct config location - Ensures ldap_config.json and database are found consistently - Matches docker-compose setup --- start_server.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start_server.sh b/start_server.sh index efbea368..51f2edd6 100755 --- a/start_server.sh +++ b/start_server.sh @@ -25,10 +25,12 @@ source .venv/bin/activate echo "📦 Updating Python dependencies..." pip install -q -r backend/requirements.txt -# 4. Get Local IP and set CORS origins +# 4. Get Local IP and set environment variables LOCAL_IP=$(ipconfig getifaddr en0 || ipconfig getifaddr en1 || echo "localhost") export ALLOWED_ORIGINS="http://localhost:$FRONTEND_PORT,http://localhost:$BACKEND_PORT,https://localhost:$FRONTEND_SSL_PORT,https://localhost:$BACKEND_SSL_PORT,https://$LOCAL_IP:$FRONTEND_SSL_PORT,https://$LOCAL_IP:$BACKEND_SSL_PORT" export JWT_SECRET_KEY="${JWT_SECRET_KEY:-ephemeral-dev-key-$(date +%s)}" +export DATA_DIR="./data" +export LOGS_DIR="./logs" echo "🔥 Starting Backend on port $BACKEND_PORT..." echo " CORS origins: $ALLOWED_ORIGINS"