You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
956 B
25 lines
956 B
@echo off
|
|
title Launch Server & Redis (Network)
|
|
echo ====================================================
|
|
echo Launching Redis and Django Backend Server on Network...
|
|
echo ====================================================
|
|
|
|
set BACKEND_DIR=C:\Users\sajjadi\projects\muslin_connect_hub_backend
|
|
|
|
cd /d "%BACKEND_DIR%"
|
|
|
|
echo [1/2] Starting Redis Server...
|
|
start "Redis Server" cmd /k "cd /d %BACKEND_DIR% && redis-server --bind 0.0.0.0 --protected-mode no"
|
|
|
|
echo Waiting for Redis to initialize...
|
|
timeout /t 2 /nobreak >nul
|
|
|
|
echo [2/2] Starting Django Development Server on 0.0.0.0:8000...
|
|
start "Django Server" cmd /k "cd /d %BACKEND_DIR% && .\.venv\Scripts\python.exe manage.py runserver 0.0.0.0:8000"
|
|
|
|
echo ====================================================
|
|
echo Both services are running on the network!
|
|
echo - Redis: port 6379 (0.0.0.0)
|
|
echo - Backend: port 8000 (0.0.0.0:8000)
|
|
echo ====================================================
|
|
timeout /t 5
|