-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQUICK_HOST.bat
More file actions
77 lines (66 loc) · 1.67 KB
/
QUICK_HOST.bat
File metadata and controls
77 lines (66 loc) · 1.67 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
chcp 65001 >nul
title Quick Host Online
color 0E
cls
echo.
echo ========================================
echo Quick Host Online for Testing
echo ========================================
echo.
REM Check if dist exists
if not exist "dist" (
echo [INFO] 'dist' folder not found. Building app first...
echo.
REM Check if node is installed
where node >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Node.js is not installed!
echo.
echo Please install Node.js first.
echo See INSTALL_NODEJS.txt
echo.
pause
exit /b 1
)
echo Building app (this will take 1-2 minutes)...
call npm install >nul 2>nul
call npm run build
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Build failed
echo.
pause
exit /b 1
)
echo.
echo Build complete!
echo.
)
echo ========================================
echo READY TO HOST ONLINE!
echo ========================================
echo.
echo Follow these steps:
echo.
echo 1. Go to: https://app.netlify.com/drop
echo.
echo 2. Drag the 'dist' folder onto the page
echo (The 'dist' folder is in this directory)
echo.
echo 3. Wait 30 seconds
echo.
echo 4. Get your link and test online!
echo.
echo ========================================
echo.
echo Press any key to open Netlify Drop in your browser...
pause >nul
start https://app.netlify.com/drop
echo.
echo The browser should open to Netlify Drop.
echo Drag the 'dist' folder onto the page!
echo.
echo Press any key to open the dist folder location...
pause >nul
explorer .