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.
28 lines
835 B
28 lines
835 B
@echo off
|
|
REM ===============================================
|
|
REM Quick Hot Reload Startup Script
|
|
REM ===============================================
|
|
|
|
echo [INFO] Quick start hot reload development environment...
|
|
echo.
|
|
|
|
REM Check if Air is installed
|
|
set "AIR_PATH=%USERPROFILE%\go\bin\air.exe"
|
|
if not exist "%AIR_PATH%" (
|
|
echo [ERROR] Air not installed! Auto installing...
|
|
go install github.com/air-verse/air@latest
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Air installation failed, please install manually
|
|
pause
|
|
exit /b 1
|
|
)
|
|
echo [INFO] Air installation completed
|
|
)
|
|
|
|
REM Switch to backend directory and start
|
|
cd backend
|
|
echo [INFO] Starting backend hot reload server...
|
|
echo [INFO] Code changes will automatically restart the server
|
|
echo [INFO] Press Ctrl+C to stop the server
|
|
echo.
|
|
"%AIR_PATH%"
|
|
|