NO docker

This commit is contained in:
beabigegg
2025-10-02 18:50:53 +08:00
commit 4cace93934
99 changed files with 26967 additions and 0 deletions

35
start_celery_beat.bat Normal file
View File

@@ -0,0 +1,35 @@
@echo off
REM ============================================
REM PANJIT Document Translator V2
REM Celery Beat 啟動腳本 (Windows)
REM ============================================
echo ========================================
echo PANJIT Document Translator V2
echo Celery Beat 定時任務啟動
echo ========================================
echo.
REM 設定環境變數
set FLASK_ENV=production
set LOG_LEVEL=INFO
echo [INFO] 載入環境變數...
echo.
REM 檢查 Python 虛擬環境
if exist venv\Scripts\activate.bat (
echo [INFO] 啟動虛擬環境...
call venv\Scripts\activate.bat
) else (
echo [警告] 未找到虛擬環境 venv使用系統 Python
)
echo.
echo [INFO] 啟動 Celery Beat...
echo [INFO] 按 Ctrl+C 停止服務
echo.
celery -A celery_app beat --loglevel=info
pause