|
Download PRODUCTION_CHECKLIST.md from Basel0/qshub: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/spaces/Basel0/qshub/resolve/main/PRODUCTION_CHECKLIST.md
- Command line
-
hf download hf://spaces/Basel0/qshub/PRODUCTION_CHECKLIST.md
-
curl -L -o PRODUCTION_CHECKLIST.md https://huggingface.co/spaces/Basel0/qshub/resolve/main/PRODUCTION_CHECKLIST.md
1.99 kB
THE QS HUB Production Checklist
Required Secrets
TIDB_HOSTTIDB_PORTTIDB_USERTIDB_PASSWORDTIDB_DATABASEAPP_BASE_URLJWT_SECRETCORS_ALLOW_ORIGINSGOOGLE_API_KEY(orAI_API_KEY_1,AI_API_KEY_2, etc. for multiple LLM keys)DODO_ENVIRONMENTDODO_PAYMENTS_API_KEYDODO_WEBHOOK_SECRETDODO_PRODUCT_TIER_1DODO_PRODUCT_TIER_2DODO_PRODUCT_TIER_3DODO_PRODUCT_TIER_4DODO_PRODUCT_ADDON_PROJECTDODO_CUSTOMER_PORTAL_URLSENTRY_DSN- Storage secrets if
STORAGE_PROVIDER=s3 - SMTP secrets if password reset emails are enabled
One-Time Setup
- Rotate every secret that was ever stored locally or shared.
- Fill deployment secrets in the hosting platform.
- Run database migrations:
python migrate_db.py
- Configure Dodo Payments Webhook URL in Dodo Dashboard:
https://YOUR-DOMAIN/webhooks/dodopayments
- Enable these Dodo Payments events in dashboard:
subscription.createdsubscription.activatedsubscription.updatedsubscription.pausedsubscription.resumedsubscription.past_duesubscription.canceledpayment.succeededpayment.failed
Production Processes
Run two processes:
uvicorn api.main:app --host 0.0.0.0 --port 8000
python worker.py
Docker Compose:
docker compose up --build
Launch Gate
- All pytest tests pass successfully.
- Web server health checks return online status.
- Dodo sandbox checkout redirect page works.
- Dodo webhook updates subscriber's active status.
- Multiple active projects session tracking via unique
project_idfunctions properly. - Rate limiting middleware blocks high volume requests.
- Excel and PDF exports require critical input validation before processing.
- Admin dashboard actions require explicit supervisor confirmation.
- Sentry receives a test error.
- Legal Terms, Privacy Policy, and Engineering Disclaimer are reviewed by counsel.