PixelForge / START_IMAGEFORGE.bat
Gregorfun's picture
Initial commit
32c5da4
@echo off
echo ======================================
echo ImageForge Stack Startup
echo ======================================
echo.
REM Set HuggingFace cache and environment variables
set HF_HOME=d:/VSC Codes/Bild/.cache/hf
set TRANSFORMERS_CACHE=d:/VSC Codes/Bild/.cache/hf
cd /d "%~dp0imageforge"
echo [1/2] Starting Backend...
start "ImageForge Backend" /MIN cmd /k "set HF_HOME=d:/VSC Codes/Bild/.cache/hf && set TRANSFORMERS_CACHE=d:/VSC Codes/Bild/.cache/hf && set IMAGEFORGE_HOST=127.0.0.1 && set IMAGEFORGE_PORT=8008 && D:\VSC Codes\Bild\.venv\Scripts\python.exe -m backend.app.main"
timeout /t 3 /nobreak >nul
echo [2/2] Starting Frontend...
cd frontend
start "ImageForge Frontend" /MIN cmd /k "npm run dev"
timeout /t 5 /nobreak >nul
echo.
echo ======================================
echo Services Started!
echo ======================================
echo Backend: http://127.0.0.1:8008
echo Frontend: http://127.0.0.1:5173
echo ======================================
echo.
echo Opening UI in browser...
timeout /t 2 /nobreak >nul
start http://127.0.0.1:5173
echo.
echo Stack is running! Press any key to stop all services...
pause >nul
echo.
echo Stopping services...
taskkill /FI "WINDOWTITLE eq ImageForge*" /F >nul 2>&1
echo Done!