readded gunicorn
This commit is contained in:
+1
-1
@@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD ["python", "app.py"]
|
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||||
@@ -49,7 +49,7 @@ def get_garmin_data():
|
|||||||
# --- Return test data if in test mode ---
|
# --- Return test data if in test mode ---
|
||||||
if TEST_MODE:
|
if TEST_MODE:
|
||||||
print("⚡ Test mode enabled, returning hardcoded data")
|
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 ---
|
# --- RETURN CACHED DATA ---
|
||||||
if cached_data and (now - last_fetch_time < CACHE_TTL):
|
if cached_data and (now - last_fetch_time < CACHE_TTL):
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
flask
|
flask
|
||||||
garminconnect
|
garminconnect
|
||||||
requests
|
requests
|
||||||
|
gunicorn
|
||||||
Reference in New Issue
Block a user