xiaozhi-esp32-server/main/feedback-backend/start.py
kobe fae932d022 feat: add CRM feedback system and test environment
- add feedback backend, H5/admin UI, CRM services, and deployment docs
- add isolated local test compose on port 18007 with separate data paths
- remove committed LLM secret and support provider-specific env overrides

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-28 16:46:32 +08:00

34 lines
799 B
Python

"""启动脚本 - 方便快速启动服务"""
import sys
import os
# 将项目根目录加入 Python 路径
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import uvicorn
from app.shared.config import settings
def main():
host = settings.get("server.host", "0.0.0.0")
port = settings.get("server.port", 8009)
debug = settings.get("server.debug", True)
print(f"Feedback Backend starting...")
print(f" URL: http://{host}:{port}")
print(f" Docs: http://{host}:{port}/docs")
print(f" Admin: http://{host}:{port}/admin")
print(f" Debug: {'ON' if debug else 'OFF'}")
uvicorn.run(
"app.main:app",
host=host,
port=port,
reload=debug,
log_level="info",
)
if __name__ == "__main__":
main()