|
|
#!/bin/bash |
|
|
set -e |
|
|
|
|
|
echo "=== RAG Pipeline Startup (TESTING)===" |
|
|
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 ===" |
|
|
|
|
|
|
|
|
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 app.main:app --host 0.0.0.0 --port 7860 --log-level info |
|
|
|