✅ TiDB Cloud database configured ✅ Repository cleaned and ready for GitHub ✅ Production settings configured
git add .
git commit -m "Prepare for Render deployment with TiDB"
git push origin main- Go to Render.com
- Connect your GitHub account
- Create New Web Service
- Connect your repository
- Name:
taskflow-django(or your preferred name) - Environment:
Python 3 - Region: Choose closest to your location
- Branch:
main
- Build Command:
./build.sh - Start Command:
gunicorn taskmanager.wsgi:application --bind 0.0.0.0:$PORT --settings=taskmanager.settings_production
Add these in Render's Environment section:
DJANGO_SECRET_KEY=your-secret-key-here
DB_NAME=your-tidb-database-name
DB_USER=your-tidb-username
DB_PASSWORD=your-tidb-password
DB_HOST=gateway01.ap-southeast-1.prod.aws.tidbcloud.com
DB_PORT=4000
DB_SSL_CA=./certs/ca-cert.pem
DJANGO_SETTINGS_MODULE=taskmanager.settings_production
The TiDB SSL certificate (isrgrootx1.pem) is already included in your repository in the certs/ folder.
- Click "Create Web Service"
- Wait for deployment (5-10 minutes)
- Your app will be available at:
https://your-app-name.onrender.com
-
Create superuser (if needed):
python manage.py createsuperuser --settings=taskmanager.settings_production
-
Update ALLOWED_HOSTS in
settings_production.pywith your actual Render domain
- ✅ TiDB connection configured for production
- ✅ Static files handling with WhiteNoise
- ✅ Security settings enabled
- ✅ SSL/HTTPS enforced
- ✅ Media files configured
- Check Render logs if deployment fails
- Ensure all environment variables are set correctly
- Verify TiDB connection details
Your TaskFlow app will be live and accessible worldwide! 🚀