Skip to main content

Deployment Checklist

Use this checklist before every production deployment to ensure nothing is missed.
Do not skip steps. Each item addresses a real failure mode encountered during previous deployments.

Pre-deployment

1

Environment variables configured

Verify all required environment variables are set in production:
Never store secrets in code, config files, or Git. Use Azure Application Settings or environment variables.
All variables set and verified
2

Database schema up to date

Confirm all tables exist in the Supabase public schema:
Required tables: users, ai_models, threads, thread_messages, comparisons, model_votes, providers, provider_api_keys, system_settings
All 9 tables present
3

Active models configured

Ensure at least 2 active models exist for arena mode:
At least 2 active models available
4

Provider API keys valid

Verify API keys are set and not expired:
Each provider has at least 1 active API key
5

Backend builds successfully

Build completes with no errors
6

Tests pass

All tests green

Deployment

1

Deploy backend to Azure

Backend deployed successfully
2

Deploy frontend to Cloudflare Workers

Frontend deployed to Cloudflare
3

Deploy admin panel

Admin panel deployed

Post-deployment verification

1

Health check passes

Expected: {"status":"healthy"}
API is responding
2

Authentication works

Returns model list (not 401)
3

Arena mode functional

Send a test message in arena mode and verify two model responses are returned.
Dual responses received
4

Streaming works

Test the SSE streaming endpoint:
Tokens stream in real-time
5

Frontend loads correctly

Visit https://arena.dualmindlab.tech and verify:
  • Page loads without console errors
  • Login flow works
  • Chat interface renders
  • Dark mode toggles correctly
Frontend fully functional
6

Admin panel accessible

Log in to the admin panel and verify dashboard data loads.
Admin panel operational
7

Public sharing works

Share a thread and verify the public URL is accessible without authentication.
Shared threads are publicly viewable

Rollback plan

If any post-deployment check fails, roll back immediately.
Redeploy the previous version from Azure App Service → Deployment Center → select previous deployment.Or revert the Git commit:
Always keep the previous deployment artifacts available for at least 48 hours after a new deployment.