fix: try fix for data dir in Azure

This commit is contained in:
Christopher Gondek 2025-10-15 11:24:56 +02:00
parent 40a92ccafd
commit 845636a424
2 changed files with 3 additions and 2 deletions

4
app.py
View file

@ -10,8 +10,8 @@ import sys
# Add current directory to Python path
sys.path.insert(0, os.path.dirname(__file__))
# Ensure DATA_DIR exists (Azure persistent storage at /home/_data)
data_dir = os.environ.get("DATA_DIR", "/home/_data")
# Ensure DATA_DIR exists (Azure persistent storage at /home/data)
data_dir = os.environ.get("DATA_DIR", "/home/data")
os.makedirs(data_dir, exist_ok=True)
print(f"Data directory ready: {data_dir}")

View file

@ -5,3 +5,4 @@ POWERBI_DATASET_ID="0e72b1f1-3d32-4caa-bc1a-e523b6232343"
POWERBI_CLIENT_ID="9f6fa2cf-3fe1-4ed5-a430-bb7e408c0d87"
POWERBI_CLIENT_SECRET="Vdy8Q~Bm2_5ooy-pgYtEgvA9-LjRN2HiXFw6Ody0"
POWERBI_TENANT_ID="6a51aaeb-2467-4186-9504-2a05aedc591f"
DATA_DIR="/home/data"