mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
- 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>
34 lines
799 B
Python
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()
|