Problem: Docker uses 'uvicorn app:app' command which skips the if __name__ == '__main__' block, causing load_dotenv() never executed and PROXY_URLS from .env not loaded. Solution: Move load_dotenv() to module level in app.py to ensure .env is loaded for all startup methods (python app.py, uvicorn app:app, docker-compose). Changes: - Add module-level load_dotenv() in app.py - Update Dockerfile version 1.0.4 -> 1.0.5 - Improve audio content display UI - Add docs/ and scripts/ to .gitignore Made-with: Cursor |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| article_fetcher.py | ||
| auth_manager.py | ||
| content_processor.py | ||
| helpers.py | ||
| http_client.py | ||
| image_proxy.py | ||
| proxy_pool.py | ||
| rate_limiter.py | ||
| rss_poller.py | ||
| rss_store.py | ||
| webhook.py | ||