Repository navigation
Expand file tree
/
Copy pathstart_scriptotic.bat
More file actions
88 lines (71 loc) · 2.55 KB
/
Copy pathstart_scriptotic.bat
File metadata and controls
88 lines (71 loc) · 2.55 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@echo off
rem Scriptotic Launcher - Shows server status in visible terminal
rem Closes server when you close the window
title Scriptotic - YouTube to Transcript
echo ========================================
echo Scriptotic Server Console
echo ========================================
echo.
echo This window shows the Voxtral server status.
echo When you close this window, the server will stop.
echo.
echo Web interface will be available at:
echo http://localhost:5000
echo.
echo Starting servers...
echo ========================================
cd /d "%~dp0"
rem Check WSL2 availability
wsl --version >nul 2>&1
if errorlevel 1 (
echo ❌ Error: WSL2 is not installed!
echo Please install WSL2 first.
pause
exit /b 1
)
rem Check Ubuntu distribution
wsl -l | findstr "Ubuntu" >nul
if errorlevel 1 (
echo ❌ Error: Ubuntu WSL2 distribution not found!
echo Please install Ubuntu from Microsoft Store.
pause
exit /b 1
)
rem Check Voxtral environment
wsl -d Ubuntu bash -c "cd /mnt/d/Coding/Scriptotic && [ -d ~/venv-vllm-stable ]"
if errorlevel 1 (
echo ❌ Error: Voxtral environment not found!
echo Run setup first: wsl bash scripts/setup_wsl2_voxtral.sh
pause
exit /b 1
)
echo ✅ Environment checks passed
echo.
rem Start web server in background (visible via console output)
echo 🌐 Starting web server...
start /B wsl -d Ubuntu bash -c "cd /mnt/d/Coding/Scriptotic && source ~/venv-vllm-stable/bin/activate && python src/core/web_server.py"
rem Give web server time to start
timeout /t 3 /nobreak >nul
echo ✅ Web server started at http://localhost:5000
echo.
rem Start Voxtral server with live output visible in this window
echo 🤖 Starting Voxtral server (this may take 2-3 minutes for first-time model loading)...
echo Server output:
echo ----------------------------------------
rem This runs in foreground so you see all output and can Ctrl+C to stop everything
wsl -d Ubuntu bash -c "cd /mnt/d/Coding/Scriptotic && source ~/venv-vllm-stable/bin/activate && bash wsl2/start_voxtral_server.sh"
echo.
echo ========================================
echo Server stopped. Cleaning up...
rem Kill any remaining processes
echo 🧹 Killing remaining processes...
taskkill /f /im python.exe >nul 2>&1
taskkill /f /im wsl.exe >nul 2>&1
rem Critical: Shutdown WSL2 to free vmmemWSL memory (can be 10GB+)
echo 🧹 Shutting down WSL2 to free memory...
wsl --shutdown
rem Wait a moment for WSL2 to fully shutdown
timeout /t 2 /nobreak >nul
echo ✅ Cleanup complete. WSL2 memory has been freed.
echo You can now close this window.
pause