forked from Manishnm10/servviaAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_servers.bat
More file actions
28 lines (23 loc) · 789 Bytes
/
start_servers.bat
File metadata and controls
28 lines (23 loc) · 789 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
#Start script for Windows Command Prompt
@echo off
echo ========================================
echo ServVia - Starting All Servers
echo ========================================
echo.
set "ROOT_DIR=%~dp0"
echo [1/2] Starting ServVia on port 8001...
cd /d "%ROOT_DIR%servvia"
start "ServVia" cmd /k "venv\Scripts\activate.bat && python manage.py runserver 8001"
timeout /t 2 /nobreak > nul
echo [2/2] Starting Backend on port 8000...
cd /d "%ROOT_DIR%servvia-backend"
start "Backend" cmd /k "myenv\Scripts\activate.bat && python manage.py runserver 8000"
echo.
echo ========================================
echo All servers started!
echo ========================================
echo.
echo ServVia: http://127.0.0.1:8001/
echo Backend: http://127.0.0.1:8000/
echo.
pause