-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathrun_windows.bat
More file actions
40 lines (34 loc) · 993 Bytes
/
run_windows.bat
File metadata and controls
40 lines (34 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
echo Creating virtual environment...
python -m venv venv
if %ERRORLEVEL% NEQ 0 (
echo Failed to create virtual environment.
exit /b %ERRORLEVEL%
)
echo Virtual environment created successfully.
echo Activating virtual environment...
call venv\Scripts\activate
if %ERRORLEVEL% NEQ 0 (
echo Failed to activate virtual environment.
exit /b %ERRORLEVEL%
)
echo Virtual environment activated.
echo Installing dependencies from requirements.txt...
pip install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
echo Failed to install dependencies.
exit /b %ERRORLEVEL%
)
echo Dependencies installed successfully.
echo.
echo ========================================
echo Starting WilmerAI with Waitress
echo (Production WSGI server for Windows)
echo ========================================
echo.
REM Pass all arguments directly to run_waitress.py
python run_waitress.py %*
if %ERRORLEVEL% NEQ 0 (
echo Failed to start the application.
exit /b %ERRORLEVEL%
)