ritvikv03 Claude Sonnet 4.6 commited on
Commit Β·
be08083
1
Parent(s): 9cb08f7
chore: expose Flask server for gunicorn, add gunicorn to requirements
Browse files- app.py: server = app.server (required for production WSGI deployment)
- requirements.txt: add gunicorn>=21.2.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- app.py +1 -0
- requirements.txt +3 -0
app.py
CHANGED
|
@@ -1478,6 +1478,7 @@ app = dash.Dash(
|
|
| 1478 |
title="Fendt Sentinel",
|
| 1479 |
long_callback_manager=_long_callback_manager,
|
| 1480 |
)
|
|
|
|
| 1481 |
|
| 1482 |
# ββ Flask-Caching β memoize expensive DB + graph calls ββββββββ
|
| 1483 |
# SimpleCache keeps results in-process (no Redis needed for single-worker Dash).
|
|
|
|
| 1478 |
title="Fendt Sentinel",
|
| 1479 |
long_callback_manager=_long_callback_manager,
|
| 1480 |
)
|
| 1481 |
+
server = app.server
|
| 1482 |
|
| 1483 |
# ββ Flask-Caching β memoize expensive DB + graph calls ββββββββ
|
| 1484 |
# SimpleCache keeps results in-process (no Redis needed for single-worker Dash).
|
requirements.txt
CHANGED
|
@@ -100,6 +100,9 @@ diskcache>=5.6.0
|
|
| 100 |
multiprocess>=0.70.16
|
| 101 |
# ββ Server-side caching (tab navigation + DB query memoization) ββββββββββββββ
|
| 102 |
flask-caching>=2.1.0
|
|
|
|
|
|
|
|
|
|
| 103 |
# ββ Background scheduler (Scout 6-hour cycle + heartbeat) βββββββββββββββββββ
|
| 104 |
APScheduler>=3.10.0,<4.0
|
| 105 |
# ββ RSS feed parsing (Scout scraper) βββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 100 |
multiprocess>=0.70.16
|
| 101 |
# ββ Server-side caching (tab navigation + DB query memoization) ββββββββββββββ
|
| 102 |
flask-caching>=2.1.0
|
| 103 |
+
|
| 104 |
+
# ββ Production Web Server ββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 105 |
+
gunicorn>=21.2.0
|
| 106 |
# ββ Background scheduler (Scout 6-hour cycle + heartbeat) βββββββββββββββββββ
|
| 107 |
APScheduler>=3.10.0,<4.0
|
| 108 |
# ββ RSS feed parsing (Scout scraper) βββββββββββββββββββββββββββββββββββββββββ
|