fix: deployment — resolve dependency conflicts, add initial migration, CI/CD webhook
- Fix httpx/pydantic/redis version conflicts for litellm/aiogram/celery compatibility - Add PYTHONPATH=/app to Dockerfile for alembic module resolution - Skip Telegram webhook setup when URL is not HTTPS - Fix FileUpload prop type mismatch in RecordingsPage - Add alembic script.py.mako template and initial migration - Configure docker-compose: port 8081, built frontend, no exposed internal ports - Add deploy.sh and webhook-server.js for Gitea CI/CD auto-deploy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -30,10 +30,10 @@ async def seed_default_templates():
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
await seed_default_templates()
|
||||
if settings.telegram_bot_token:
|
||||
if settings.telegram_bot_token and settings.telegram_webhook_url.startswith("https"):
|
||||
await telegram_service.setup()
|
||||
yield
|
||||
if settings.telegram_bot_token:
|
||||
if settings.telegram_bot_token and settings.telegram_webhook_url.startswith("https"):
|
||||
await telegram_service.shutdown()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user