mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 05:40:17 +08:00
- Fix UnicodeEncodeError 'gbk' on Windows by setting encoding='utf-8' on stdout/stderr reconfigure in run_server.py - Guard Deep Research send to prevent 'settings are incomplete' crash - Add lazy import for notebook_manager in services/__init__.py - Add start_backend.bat with PYTHONIOENCODING=utf-8 and PYTHONUTF8=1 - Add start_frontend.bat convenience script - Document all patches in PATCHES.md for re-apply after upstream sync
23 lines
618 B
Batchfile
23 lines
618 B
Batchfile
@echo off
|
|
REM DeepTutor Backend Startup Script
|
|
REM Activates virtual environment and starts the backend API server
|
|
|
|
cd /d "%~dp0"
|
|
|
|
REM Set UTF-8 encoding for stdout to support emoji characters
|
|
set PYTHONIOENCODING=utf-8
|
|
set PYTHONUTF8=1
|
|
|
|
echo Activating Python virtual environment...
|
|
call .venv\Scripts\activate.bat
|
|
if errorlevel 1 (
|
|
echo ERROR: Failed to activate virtual environment. Make sure .venv exists.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Starting DeepTutor Backend Server...
|
|
echo Backend will be available at: http://localhost:8001
|
|
echo Press Ctrl+C to stop the server.
|
|
python -m deeptutor.api.run_server
|
|
pause |