Added new demonic pacts images and theme.
This commit is contained in:
34
run-backend.bat
Normal file
34
run-backend.bat
Normal file
@@ -0,0 +1,34 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user