🚀 Deploy to Staging: Quick Start¶
Deploy your chat application to https://staging.chat.daza.ar
⚡ Quick Deploy (First Time)¶
1. Run Setup (One-Time)¶
This will ask for:
- Email: Your login email
- Password: Your login password (will be hashed)
2. Verify Domain Ownership¶
Before deploying, verify your domain in Google Cloud Console:
- Go to: https://console.cloud.google.com/run/domains
- Click "Add Mapping" button
- Enter domain:
staging.chat.daza.ar - If not verified, you'll be redirected to verify via Google Search Console
- Add the TXT record shown to your DNS
- Wait for verification to complete (5-10 minutes)
3. Deploy¶
4. Configure DNS¶
Add this CNAME record to your DNS provider:
For daza.ar domain, this would typically be:
- Login to your DNS provider (Cloudflare, Namecheap, etc.)
- Add a CNAME record
- Point
staging.chat.daza.artoghs.googlehosted.com
5. Wait & Test¶
- DNS propagation: 5-30 minutes
- SSL certificate: 15-60 minutes
- Test: https://staging.chat.daza.ar
🔄 Redeploy After Changes¶
📋 What Gets Deployed?¶
- Service:
chat-staging - Region:
us-central1 - URL: https://staging.chat.daza.ar
- Model:
gemini-2.5-flash-image - Resources: 1GB RAM, 1 vCPU, 5min timeout
🐛 Troubleshooting¶
Check if secrets exist¶
Check deployment status¶
View logs¶
Check domain mapping¶
💡 Common Issues¶
"Secret not found"¶
Run ./setup-secrets.sh first
"Domain not verified"¶
Verify domain at https://console.cloud.google.com/run/domains/verify
"DNS not resolving"¶
- Check DNS record is correct
- Wait for propagation (up to 24 hours, usually 5-30 min)
- Test with:
dig staging.chat.daza.ar
"SSL certificate pending"¶
- Wait 15-60 minutes after DNS propagation
- Certificate is auto-issued by Google
📊 Monitor Your App¶
- Dashboard: https://console.cloud.google.com/run/detail/us-central1/chat-staging
- Logs: https://console.cloud.google.com/logs
- Metrics: CPU, Memory, Request count in Cloud Console
💰 Cost¶
Estimated monthly cost for staging:
- Low usage: $2-5
- Medium usage: $10-20
- Image generation: ~$0.001 per image
Free tier includes:
- 2 million requests
- 360,000 GB-seconds
- 180,000 vCPU-seconds
📚 Full Documentation¶
See CLOUD-RUN-DEPLOYMENT.md for complete details.
Ready to deploy? Run ./setup-secrets.sh to get started! 🚀