Use Gunicorn in Procfile for Render, add platform detection

This commit is contained in:
ajaysi
2026-04-06 09:03:57 +05:30
parent 3c79073a10
commit cc03567d2f
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
# Use start_alwrity_backend.py for deployment
# This script handles all bootstrap logic and starts uvicorn
web: python start_alwrity_backend.py --production
# Use Gunicorn with uvicorn worker for faster port binding on Render
# Gunicorn binds immediately, then loads app in background
web: gunicorn app:app --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT --timeout 600