-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
57 lines (50 loc) · 1.99 KB
/
deploy.bat
File metadata and controls
57 lines (50 loc) · 1.99 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
@echo off
:: =============================================================================
:: DEPLOY SCRIPT: Build React frontend + Open Netlify Drop Page
:: - Byron's Modular Workflow (Dec 2025)
:: - Zero assumptions — checks deps, builds, opens browser
:: =============================================================================
setlocal
echo [+] Starting frontend deployment prep...
cd /d "%~dp0"
:: === STEP 1: Verify Node.js ===
echo [*] Checking Node.js...
node --version >nul 2>&1
if errorlevel 1 (
echo [!] ERROR: Node.js not found. Install from https://nodejs.org
pause
exit /b 1
)
echo [+] Node.js detected.
:: === STEP 2: Build frontend ===
echo.
echo [*] Building React frontend (production)...
cd frontend
npm run build
if errorlevel 1 (
echo [!] ERROR: Build failed. Check frontend dependencies.
pause
exit /b 1
)
cd ..
:: === STEP 3: Verify dist folder ===
if not exist "frontend\dist\" (
echo [!] ERROR: Build succeeded but 'dist' folder missing.
pause
exit /b 1
)
echo [+] Build successful. Output: frontend\dist\
:: === STEP 4: Open Netlify drop page ===
echo.
echo [+] Opening Netlify drag-and-drop deploy page...
start https://app.netlify.com/drop
:: === STEP 5: Instructions ===
echo.
echo ┌──────────────────────────────────────────────────────────────────────┐
echo │ ✅ NEXT STEPS: │
echo │ 1. Drag ^& drop 'frontend\dist' folder onto the open browser window │
echo │ 2. Copy your Netlify URL (e.g., https://xyz.netlify.app) │
echo │ 3. Deploy backend on Render (see DEPLOY_RENDER.md) │
echo └──────────────────────────────────────────────────────────────────────┘
echo.
pause