-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
30 lines (26 loc) · 801 Bytes
/
Copy pathdeploy.bat
File metadata and controls
30 lines (26 loc) · 801 Bytes
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
@echo off
echo [TuttoClick] Iniciando proceso de despliegue local a produccion...
echo [1/3] Sincronizando datos desde Google Sheets...
call node fetch-data.js
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Fallo al sincronizar datos. Despliegue cancelado.
pause
exit /b %ERRORLEVEL%
)
echo [2/3] Compilando aplicacion (Vite)...
call npm run build
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Fallo en la compilacion. Despliegue cancelado.
pause
exit /b %ERRORLEVEL%
)
echo [3/3] Subiendo a Firebase Hosting...
call npx firebase deploy --only hosting --project tuttoclick
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Fallo en el despliegue a Firebase.
pause
exit /b %ERRORLEVEL%
)
echo [OK] ¡Despliegue completado con exito!
echo Tu sitio esta vivo en: https://tuttoclick.web.app
pause