File size: 739 Bytes
91f974c
 
 
 
 
6f3f026
91f974c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f3f026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -e  # Exit on any error

echo "=== RAG Pipeline Startup ==="
echo "PORT environment variable: ${PORT:-'not set'}"
echo "Using port: 7860"
if [ -n "$GOOGLE_API_KEY" ]; then
    echo "Google API Key present: Yes"
else
    echo "Google API Key present: No"
fi
echo "Starting uvicorn server..."
echo "=== End Startup Info ==="

# Debug the uvicorn command
echo "Current directory: $(pwd)"
echo "Python path: $PYTHONPATH"
echo "Contents of current directory:"
ls -la
echo "Contents of app directory:"
ls -la app/
echo "Testing Python import:"
python -c "import app.main; print('Import successful')" || echo "Import failed"
echo "Starting uvicorn..."
uvicorn rag_pipeline.app.main:app --host 0.0.0.0 --port 7860 --log-level info