fix: separate data scripts from volume mount directory

Move get_daily_price.py and merge_jsonl.py to /app/scripts
to prevent volume mount from overlaying the scripts.
Scripts run from /app/data context to output correctly.

Fixes container startup error where scripts were not found
after ./data volume mount replaced container's /app/data.
This commit is contained in:
2025-10-30 20:53:44 -04:00
parent 2d1c356199
commit 0c58baed42
2 changed files with 9 additions and 2 deletions

View File

@@ -5,9 +5,10 @@ echo "🚀 Starting AI-Trader..."
# Step 1: Data preparation
echo "📊 Fetching and merging price data..."
# Run scripts from /app/scripts but output to /app/data
cd /app/data
python get_daily_price.py
python merge_jsonl.py
python /app/scripts/get_daily_price.py
python /app/scripts/merge_jsonl.py
cd /app
# Step 2: Start MCP services in background