Files
gotail/build.bat
T
Luiz Costa 3a5cbe12ef feat: initialize web tail pro application with frontend and backend
- Add frontend React application with log viewing components
- Implement backend Go server for log tailing and SSE streaming
- Include build scripts for both frontend and backend
- Set up basic authentication and file handling
- Add styling and log formatting capabilities
2025-11-18 08:27:21 -03:00

35 lines
1005 B
Batchfile

@echo off
echo 🚀 Iniciando o processo de build...
REM Passo 1: Build do Frontend (React)
echo 📦 Instalando dependências do frontend...
cd frontend
call npm install
echo 🔨 Construindo o frontend para produção...
call npm run build
if %errorlevel% neq 0 (
echo ❌ Falha no build do frontend. Abortando.
exit /b %errorlevel%
)
cd ..
REM Passo 2: Build do Backend (Go)
echo 🔨 Compilando o backend com arquivos embedados...
go build -o web-tail-pro.exe ./backend/main.go
if %errorlevel% neq 0 (
echo ❌ Falha na compilação do backend. Abortando.
exit /b %errorlevel%
)
echo ✅ Build concluído com sucesso!
echo ➡️ Execute o binário gerado:
echo .\web-tail-pro.exe [opções] backend\logs\app.log backend\logs\access.log backend\logs\json.log
echo.
echo Exemplos:
echo .\web-tail-pro.exe -port :9090 -password s3nh4 backend\logs\*.log
echo .\web-tail-pro.exe -password s3nh4 backend\logs\app.log
echo .\web-tail-pro.exe -port 1234 backend\logs\*.log