You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Your project is already created: orange-lens-472108
gcloud config set project orange-lens-472108
# Verify project is set correctly
gcloud config get-value project
# Your project ID is already set: orange-lens-472108export PROJECT_ID="orange-lens-472108"echo"export PROJECT_ID=\"$PROJECT_ID\"">>~/.zshrc
# Verify project is set correctly
gcloud config get-value project
2. Run Deployment Script
chmod +x scripts/deploy.sh
./scripts/deploy.sh
3. Configure Secrets
# Set API keys in Secret Managerecho"your-vertex-ai-key"| gcloud secrets versions add truthlens-api-key --data-file=-
echo"your-fact-check-api-key"| gcloud secrets versions add fact-check-api-key --data-file=-
4. Test the Platform
# Get API Gateway URL
API_URL=$(gcloud api-gateway gateways describe truthlens-gateway --location=us-central1 --format="value(defaultHostname)")# Test health endpoint
curl "https://$API_URL/healthz"# Test verification endpoint
curl -H "Authorization: Bearer your-api-key" \
-F "text=The Earth is round" \
-F "mode=fast" \
-F "language=en" \
"https://$API_URL/v1/verify"
Troubleshooting
Common Issues
Permission Denied: Check IAM roles
API Not Enabled: Enable required APIs
Billing Not Enabled: Link project to billing account
Quota Exceeded: Request quota increase
Debug Commands
# Check project status
gcloud config list
# Check enabled APIs
gcloud services list --enabled
# Check Cloud Run services
gcloud run services list
# Check logs
gcloud logs read --service=truthlens-api --limit=50