readded gunicorn

This commit is contained in:
ash
2026-03-31 09:01:05 +01:00
parent 2b80fabeee
commit be3823db16
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
+1 -1
View File
@@ -49,7 +49,7 @@ def get_garmin_data():
# --- Return test data if in test mode ---
if TEST_MODE:
print("⚡ Test mode enabled, returning hardcoded data")
return {"total_km": 70, "goal_km": 100, "percent": 12.6, "status": "success"}
return {"total_km": 70, "goal_km": 235, "percent": 12.6, "status": "success"}
# --- RETURN CACHED DATA ---
if cached_data and (now - last_fetch_time < CACHE_TTL):
+1
View File
@@ -1,3 +1,4 @@
flask
garminconnect
requests
gunicorn