Files
leagues-tools/run-backend.bat

35 lines
792 B
Batchfile

@echo off
REM Run the Spring Boot backend server
echo Starting Group Ironmen Backend...
echo.
REM Change to the backend directory
cd /d "%~dp0spring-backend"
REM Load environment variables from .env file
if exist ".env" (
echo Loading environment from .env file...
for /f "usebackq tokens=1,* delims==" %%a in (".env") do (
REM Skip comments and empty lines
echo %%a | findstr /r "^#" >nul
if errorlevel 1 (
if not "%%a"=="" (
set "%%a=%%b"
)
)
)
echo.
echo Database: %DB_USER%@%DB_HOST%:%DB_PORT%/%DB_NAME%
echo Server Port: %SERVER_PORT%
echo.
) else (
echo Warning: No .env file found in spring-backend directory
echo.
)
REM Run the application
call gradlew.bat bootRun
pause