Use Gunicorn with app:app for faster port binding

This commit is contained in:
ajaysi committed 2026-04-06 08:48:57 +05:30
1 parent 4ca58084fd
commit 11663b0142
1 file changed
+3 -3
+3 -3
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
# Use gunicorn with app:app for faster startup
# Gunicorn binds to port immediately, then loads app in background
web: gunicorn app:app --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT --timeout 600