chore: 移除 Windows 啟動腳本

移除 Windows 平台專用的 .bat 啟動腳本,統一使用 Linux shell 腳本。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
beabigegg
2026-01-26 19:20:34 +08:00
parent 20af254868
commit e75f4712f6
2 changed files with 0 additions and 101 deletions

View File

@@ -1,57 +0,0 @@
@echo off
setlocal EnableDelayedExpansion
echo ========================================
echo Initialize MES Dashboard Environment
echo ========================================
echo.
set "ROOT=%~dp0.."
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python not found
echo Please install Python 3.11+
echo Download: https://www.python.org/downloads/
pause
exit /b 1
)
echo [1/3] Checking virtual environment...
if exist "%ROOT%\venv\Scripts\python.exe" (
echo [OK] Virtual environment exists
) else (
echo Creating virtual environment...
python -m venv "%ROOT%\venv"
if errorlevel 1 (
echo [ERROR] Failed to create venv
pause
exit /b 1
)
echo [OK] Virtual environment created
)
echo.
echo [2/3] Installing dependencies...
"%ROOT%\venv\Scripts\pip.exe" install -r "%ROOT%\requirements.txt"
if errorlevel 1 (
echo [ERROR] Failed to install dependencies
pause
exit /b 1
)
echo.
echo [3/3] Verifying packages...
"%ROOT%\venv\Scripts\python.exe" -c "import oracledb; print('[OK] oracledb installed')"
"%ROOT%\venv\Scripts\python.exe" -c "import flask; print('[OK] Flask installed')"
"%ROOT%\venv\Scripts\python.exe" -c "import pandas; print('[OK] Pandas installed')"
echo.
echo ========================================
echo Initialization Complete!
echo ========================================
echo.
echo Run "scripts\啟動Dashboard.bat" to start server
echo.
pause

View File

@@ -1,44 +0,0 @@
@echo off
setlocal EnableDelayedExpansion
echo ========================================
echo MES Dashboard Portal
echo ========================================
echo.
set "ROOT=%~dp0.."
REM Check for python.exe in different locations (standard venv or conda)
if exist "%ROOT%\venv\Scripts\python.exe" (
set "PYTHON=%ROOT%\venv\Scripts\python.exe"
) else if exist "%ROOT%\venv\python.exe" (
set "PYTHON=%ROOT%\venv\python.exe"
) else (
echo [ERROR] Virtual environment not found
echo Please run initialization script first
echo.
pause
exit /b 1
)
set "PYTHONPATH=%ROOT%\src"
set "WAITRESS=%ROOT%\venv\Scripts\waitress-serve.exe"
echo Starting server...
echo URL: http://localhost:8080
echo Press Ctrl+C to stop
echo.
echo ========================================
echo.
if exist "%WAITRESS%" (
"%WAITRESS%" --listen=0.0.0.0:8080 mes_dashboard:create_app
) else (
echo [WARN] waitress-serve not found, falling back to development server
"%PYTHON%" -m mes_dashboard
)
echo.
echo ========================================
echo Server stopped
pause