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>

Files changed (2) hide show
  1. app.py +1 -0
  2. 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) ─────────────────────────────────────────