refactor: v2

backend & frontend
This commit is contained in:
2026-01-01 18:38:21 +08:00
parent 3d201bc497
commit fdc725b893
109 changed files with 22918 additions and 1135 deletions
+24
View File
@@ -0,0 +1,24 @@
"""
Daemon mode startup script - For background service
后台服务启动脚本 - 用于守护进程模式
"""
import sys
import os
from pathlib import Path
# Add project root directory to Python path
BASE_DIR = Path(__file__).resolve().parent
sys.path.insert(0, str(BASE_DIR))
os.chdir(BASE_DIR)
# Import and run in production mode
if __name__ == "__main__":
import uvicorn
uvicorn.run(
"backend.main:app",
host="0.0.0.0",
port=8000,
reload=False, # Disable reload for daemon mode
log_level="info",
access_log=True,
)