forked from naman-ranka/HEAL_AI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
43 lines (36 loc) · 1.09 KB
/
deploy.bat
File metadata and controls
43 lines (36 loc) · 1.09 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
@echo off
REM HEAL.AI Easy Deployment Script for Windows
echo 🚀 HEAL.AI Deployment Script
echo ==============================
REM Check if we're in the right directory
if not exist "README.md" (
echo ❌ Please run this script from the HEAL project root directory
exit /b 1
)
if not exist "backend" (
echo ❌ Backend directory not found
exit /b 1
)
if not exist "frontend" (
echo ❌ Frontend directory not found
exit /b 1
)
echo 📦 Building frontend...
cd frontend-clean
call npm install
call npm run build
cd ..
echo 📁 Copying frontend build to backend static folder...
if exist "backend\static" rmdir /s /q "backend\static"
xcopy /e /i "frontend-clean\dist" "backend\static"
echo 🐳 Building Docker image...
docker build -t heal-ai .
echo ✅ Build complete!
echo.
echo 🚀 Deployment Options:
echo 1. Local Docker: docker run -p 8000:8000 -e GEMINI_API_KEY=your_key heal-ai
echo 2. Railway: railway up
echo 3. Render: git push (if connected to Render)
echo 4. Docker Compose: docker-compose up
echo.
echo 📝 Don't forget to set your GEMINI_API_KEY environment variable!