EstateHub

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.

ServiceProvider optionsWhy
Frontend (Next.js)Netlify or VercelManaged Next.js hosting and HTTPS. Choose a plan that permits your commercial use; set public URLs before building.
Backend (Django ASGI)Railway (recommended) or RenderDeploy the Django service from backend/ and run Daphne. Choose a production-appropriate plan.
PostgreSQLRailway PostgreSQL or NeonRailway 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 RedisUse only when shared Channels/cache or Celery tasks are configured and tested.
Files and imagesCloudinary or supported object storageConfigure the backend Storage integration for managed uploads, including chat attachments.
EmailSMTP, Resend, SendGrid, or MailgunSend verification and recovery messages through a tested provider.
DNS and SSLHosting provider; Cloudflare optionalServe 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:

BASH
cd backend
DJANGO_SETTINGS_MODULE=core.settings.prod python manage.py check --deploy

Production 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.

VariableWhereProduction notes
DJANGO_SETTINGS_MODULEBackendSet to core.settings.prod for the API, management commands, and any worker.
SECRET_KEYBackendGenerate a unique Django secret; keep it stable after launch.
PLATFORM_CONFIG_ENCRYPTION_KEYBackendUse a different persistent secret for stored integration credentials.
DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, DB_PORTBackendUse restricted PostgreSQL credentials. EstateHub currently uses these fields, not DATABASE_URL.
ALLOWED_HOSTSBackendExact backend hostnames without an https:// scheme.
CORS_ALLOWED_ORIGINS, CSRF_TRUSTED_ORIGINSBackendExact frontend HTTPS origins, including the scheme.
PUBLIC_API_BASE_URL, EMAIL_FRONTEND_URLBackendPublic backend and frontend HTTPS URLs without trailing slashes.
NEXT_PUBLIC_API_BASE_URLFrontendSet to https://api.example.com/api/v1 before building; rebuild if it changes.
NEXT_PUBLIC_SITE_URLFrontendSet to the public frontend HTTPS URL before building.
Storage, email, and social loginAdmin DashboardConfigure integrations after admin setup; environment values are fallbacks. Chat uploads use the same Storage integration.

Deployment sequence

1

Prepare services

Provision PostgreSQL, domains, storage, and email. Keep database and storage credentials restricted.
2

Configure the backend

Set production variables, resolve the preflight issues, and run Django's deployment check.
3

Release the backend

Run migrations once, collect static files into the deployed backend image or filesystem, then start Daphne and check /health/.
4

Build the frontend

Set 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.
5

Verify and protect

Test HTTPS, login, email, uploads, and any enabled realtime flows. Confirm backups, restore procedure, monitoring, and rollback before accepting real users.
Do not promote a test setup unchanged

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.