Production Deployment
EstateHub has a Next.js frontend and a Django ASGI backend. This page helps you choose services and prepare a real launch. Use the local Quick Start for development or Quick Start — Evaluation for a temporary free-tier trial.
Recommended Production Stack
| Service | Provider options | Why |
|---|---|---|
| Frontend (Next.js) | Netlify or Vercel | Managed Next.js hosting and HTTPS. Choose a plan that permits your commercial use; set public URLs before building. |
| Backend (Django ASGI) | Railway (recommended) or Render | Deploy the Django service from backend/ and run Daphne. Choose a production-appropriate plan. |
| PostgreSQL | Railway PostgreSQL or Neon | Railway keeps the API and database in one project. Choose backups and test a restore; do not assume a free plan includes them. |
| Redis (optional) | Upstash or managed Redis | Use only when shared Channels/cache or Celery tasks are configured and tested. |
| Files and images | Cloudinary or supported object storage | Configure the backend Storage integration for managed uploads, including chat attachments. |
| SMTP, Resend, SendGrid, or Mailgun | Send verification and recovery messages through a tested provider. | |
| DNS and SSL | Hosting provider; Cloudflare optional | Serve frontend and API over HTTPS. A separate DNS/CDN provider is not required. |
These are hosting options, not preconfigured integrations or guarantees of compatibility with every plan. Vercel Hobby is restricted to personal, non-commercial use, and Render does not recommend its Free instances for production. For no-cost testing, use the separate evaluation guide.
Choose a deployment path
- PaaS — host the Django API and PostgreSQL on a managed platform.
- Frontend Hosting — build and host the Next.js app separately.
- Docker — adapt the included Compose stack.
- VPS / Self-Hosted — operate both applications and a reverse proxy yourself.
For a straightforward managed path, start with Railway for the Django API and PostgreSQL, then deploy the Next.js frontend separately. Follow the PaaS and Frontend Hosting guides together. Adapt the examples to your hosting environment and verify the complete release before launch.
Release preflight
Verify HTTPS redirects, trusted proxy handling, durable upload storage, and the services required for your deployment. Test authentication, uploads, email, and realtime delivery before launch.
For multi-process deployments, verify cache and channel-layer configuration and test any enabled background workers.
Run Django's deployment check with the release settings and resolve applicable warnings:
cd backend
DJANGO_SETTINGS_MODULE=core.settings.prod python manage.py check --deployProduction environment checklist
Use the configuration reference and the supplied .env.example files as field references. Put real values in your host's secret manager, not in the repository.
| Variable | Where | Production notes |
|---|---|---|
| DJANGO_SETTINGS_MODULE | Backend | Set to core.settings.prod for the API, management commands, and any worker. |
| SECRET_KEY | Backend | Generate a unique Django secret; keep it stable after launch. |
| PLATFORM_CONFIG_ENCRYPTION_KEY | Backend | Use a different persistent secret for stored integration credentials. |
| DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, DB_PORT | Backend | Use restricted PostgreSQL credentials. EstateHub currently uses these fields, not DATABASE_URL. |
| ALLOWED_HOSTS | Backend | Exact backend hostnames without an https:// scheme. |
| CORS_ALLOWED_ORIGINS, CSRF_TRUSTED_ORIGINS | Backend | Exact frontend HTTPS origins, including the scheme. |
| PUBLIC_API_BASE_URL, EMAIL_FRONTEND_URL | Backend | Public backend and frontend HTTPS URLs without trailing slashes. |
| NEXT_PUBLIC_API_BASE_URL | Frontend | Set to https://api.example.com/api/v1 before building; rebuild if it changes. |
| NEXT_PUBLIC_SITE_URL | Frontend | Set to the public frontend HTTPS URL before building. |
| Storage, email, and social login | Admin Dashboard | Configure integrations after admin setup; environment values are fallbacks. Chat uploads use the same Storage integration. |
Deployment sequence
Prepare services
Configure the backend
Release the backend
/health/.Build the frontend
NEXT_PUBLIC_API_BASE_URL and NEXT_PUBLIC_SITE_URL before the Next.js build. Point Django CORS/CSRF settings to the final frontend origin.Verify and protect
Never reuse development secrets or run seed_demo_data in production. Do not assume a successful build or /health/ response proves that identity, payment, and document-access workflows are safe for real users.
Launch verification and operations
After deployment, check https://api.example.com/health/, load the frontend over HTTPS, make a real /api/v1 request, and verify login, email delivery, private upload access, and any WebSocket flow you enabled. A healthy process alone does not confirm business workflows.
Keep database and stored-file backups with defined retention and test a restore in an isolated environment. Monitor the frontend, /health/, backend errors, database capacity, email delivery, and enabled worker/Redis services. Remove secrets, tokens, and private document URLs from logs. Use Updating EstateHub for releases and Troubleshooting when a deployment fails.
See the Django deployment checklist and Next.js self-hosting guide for platform-level checks.