Spaces:
Running on Zero
Running on Zero
File size: 1,054 Bytes
491cd8d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | @echo off
title Deploy SaulGPT Frontend to Firebase Hosting
echo ========================================================
echo SAULGPT - FIREBASE HOSTING DEPLOYMENT
echo ========================================================
echo.
cd /d "%~dp0saulgpt-ui"
echo [1/3] Building production bundle...
call npm.cmd run build
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Frontend build failed!
pause
exit /b %ERRORLEVEL%
)
cd /d "%~dp0"
echo.
echo [2/3] Checking Firebase Authentication...
call npx.cmd --yes firebase-tools login
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Firebase login failed!
pause
exit /b %ERRORLEVEL%
)
echo.
echo [3/3] Deploying to Firebase Hosting...
call npx.cmd --yes firebase-tools deploy --only hosting
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Deployment failed!
pause
exit /b %ERRORLEVEL%
)
echo.
echo ========================================================
echo DEPLOYMENT SUCCESSFUL!
echo Your live web app URL is displayed above.
echo ========================================================
pause
|