Since your config.ini already has the database URL, the app will work for database connections. However, if you need environment variables for RedbusADG (ADURL, ADU, ADP), here's how to set them:
- Create a
.envfile in the project root:
cd /Users/arun.parmar/go/src/adk-python
cat > .env << 'EOF'
# Database URL (optional - config.ini has it)
# DATABASE_URL=postgresql://username:password@hostname:5432/database
# Redbus ADG Configuration (if needed)
ADURL=your_ad_url_here
ADU=your_ad_user_here
ADP=your_ad_password_here
REDBUS_ADG_MODEL=40
EOF-
Edit
.envwith your actual values -
The launch.json is configured to load
.envautomatically
Add to ~/.zshrc or ~/.bashrc:
export ADURL="your_value"
export ADU="your_value"
export ADP="your_value"
export REDBUS_ADG_MODEL="40"Then restart VS Code.
Edit .vscode/launch.json and add values directly in the env section.
✅ Database Connection: Works via config.ini (no env vars needed)
After setting up, restart the debugger and check logs:
- Database URL should be read from config.ini
- ADURL/ADU/ADP should be available if set
Run the server and check the logs:
python -m google.adk.server.app_server 8080Look for:
- "Database URL found: postgresql://..."
- "Database URL source: CONFIG FILE"