Deploy Lovable Apps
Step-by-step guide to deploy AI-generated Lovable apps to production
Overview
Deploy your Lovable AI-generated web application to Chita Cloud in under 60 seconds with PostgreSQL and Redis included.
What is Lovable?
Lovable is an AI-powered platform that generates full-stack web applications from natural language prompts. You get working code with frontend, backend, and database logic ready to deploy.
Quick Deployment Steps
Step 1: Generate Your App
- Describe your app in natural language
- Lovable AI generates your full-stack codebase
- Test and iterate in the Lovable IDE
Step 2: Export Your Code
Option A: Download ZIP (Fastest - 60 seconds)
- In Lovable, click "Export" button
- Select "Download ZIP"
- Save the ZIP file to your computer
Option B: Push to GitHub (CI/CD Ready)
- In Lovable, click "Export" button
- Select "Push to GitHub"
- Authorize GitHub access
- Choose repository name
- Confirm push
Step 3: Deploy to Chita Cloud
If you downloaded ZIP:
- Go to app.chitacloud.com
- Click "Deploy" button at top
- Select "Upload ZIP"
- Choose your Lovable ZIP file
- Select runtime:
- Node.js for React/Next.js apps
- Python for FastAPI/Flask backends
- Click "Deploy"
If you pushed to GitHub:
- Go to app.chitacloud.com
- Click "Deploy" button
- Select "GitHub Repository"
- Authorize GitHub (first time only)
- Choose your Lovable repository
- Select branch (usually
main) - Click "Deploy"
Step 4: Add Database & Cache
Most Lovable apps need PostgreSQL and Redis:
- Go to your deployed service
- Click "Add-ons" tab
- Add PostgreSQL (from €7/month or 100MB free)
- Redis is already included in all paid plans ✅
- Connection strings are auto-injected as environment variables
Learn more: PostgreSQL setup | Redis included
Step 5: Configure Environment Variables
If your Lovable app needs API keys:
- Go to "Environment Variables" tab
- Add variables from your Lovable app settings:
OPENAI_API_KEYSTRIPE_SECRET_KEYDATABASE_URL(auto-provided)REDIS_URL(auto-provided)
- Click "Save"
- Service auto-redeploys
Detailed guide: Environment Variables
Step 6: Add Custom Domain (Optional)
- Go to "Domains" tab
- Click "Add Domain"
- Enter your domain (e.g.,
myapp.com) - Follow DNS configuration instructions
- SSL certificate issued automatically
Full documentation: Custom Domains
Common Lovable Stacks
React + Supabase
- Runtime: Node.js
- Database: Use Supabase connection or migrate to Chita PostgreSQL
- Environment variables:
SUPABASE_URL,SUPABASE_ANON_KEY
Next.js + PostgreSQL
- Runtime: Node.js
- Database: Add PostgreSQL in Chita Cloud
- Build command detected automatically
- Environment:
DATABASE_URLauto-provided
Python FastAPI Backend
- Runtime: Python
- Database: Add PostgreSQL
- Redis: Already included
- Environment: Connection strings auto-injected
Pricing Example
Lovable MVP on Chita Cloud:
| Service | Cost | Details |
|---|---|---|
| Lovable Subscription | $20/month | AI code generation |
| Chita Cloud Starter | €16/month | Hosting + Redis included |
| PostgreSQL 1GB | €7/month | Managed database |
| Total | ~€43/month | Full production stack |
Compare to Vercel + separate Redis (~€80/month for same features).
Benefits on Chita Cloud
✅ Redis included - No extra cost for caching/sessions
✅ Fixed pricing - No usage-based surprises
✅ EU hosting - GDPR compliant by default
✅ PostgreSQL add-on - Managed database from €7/month
✅ Auto SSL - Free certificates for custom domains
✅ 60-second deployment - Upload ZIP and go live
Troubleshooting
Build Failed
Check that your Lovable app has correct:
package.jsonwith all dependencies- Build script specified
- Correct Node.js version (we support 16, 18, 20, 22)
Database Connection Error
- Verify
DATABASE_URLin environment variables - Check PostgreSQL is provisioned
- Connection string format:
postgresql://user:pass@host:5432/db
See PostgreSQL guide for connection details.
Redis Connection Error
Redis is auto-provisioned on paid plans:
- Check you're on Freelancer Starter or higher plan
- Verify
REDIS_URLenvironment variable exists - Free plan doesn't include Redis