Spaces:
Sleeping
Sleeping
“shubhamdhamal”
commited on
Commit
·
cd7924e
1
Parent(s):
d5e8f8f
Fix CSRF: use single worker with threads
Browse files
start.sh
CHANGED
|
@@ -19,4 +19,6 @@ with app.app_context():
|
|
| 19 |
"
|
| 20 |
|
| 21 |
echo "Starting gunicorn server..."
|
| 22 |
-
|
|
|
|
|
|
|
|
|
| 19 |
"
|
| 20 |
|
| 21 |
echo "Starting gunicorn server..."
|
| 22 |
+
# Use 1 worker to avoid CSRF token mismatch between workers
|
| 23 |
+
# Use threads instead for concurrency
|
| 24 |
+
exec gunicorn run:app --bind 0.0.0.0:7860 --workers 1 --threads 4 --timeout 120
|