Backend Stability, Basically functional.
This commit is contained in:
26
spring-backend/run-local.bat
Normal file
26
spring-backend/run-local.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
REM Load environment variables from .env file and run Spring Boot application
|
||||
|
||||
echo Loading environment from .env file...
|
||||
|
||||
REM Read .env file and set environment variables
|
||||
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 Starting Group Ironmen Backend...
|
||||
echo Database: %DB_USER%@%DB_HOST%:%DB_PORT%/%DB_NAME%
|
||||
echo Server Port: %SERVER_PORT%
|
||||
echo.
|
||||
|
||||
REM Run the application
|
||||
gradlew.bat bootRun
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user